Skip to content

Instantly share code, notes, and snippets.

@tobiastom
Created October 12, 2010 12:06
Show Gist options
  • Save tobiastom/622074 to your computer and use it in GitHub Desktop.
Save tobiastom/622074 to your computer and use it in GitHub Desktop.
<?php
$data = array(
'lulu',
array( 'foo' => 'bar' ),
);
?><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<meta charset="utf-8" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>untitled</title>
<meta name="title" content="" />
<meta name="description" content="" />
<script type="text/javascript">
function foo() {
return <?php echo json_encode( $data ); ?>;
}
</script>
<link rel="stylesheet" type="text/css" href="screen.css" />
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment