Created
January 29, 2013 20:09
-
-
Save yitsushi/4667312 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>HTML</title> | |
</head> | |
<body> | |
<h1>Cim</h1> | |
<?php | |
$soseFogomHasznani = 3.14; | |
$tmp = 3; | |
$szorzat = $tmp * $soseFogomHasznani; | |
echo $szorzat; | |
$tmp = "test string"; | |
echo $tmp; | |
$tmp = array( | |
'2011/0001.jpeg', | |
'2012/0001.jpeg', | |
'2012/0002.jpeg', | |
'2013/0001.jpeg', | |
'2013/0002.jpeg' | |
); | |
$assoc = array( | |
'title' => "Jekyll and Hyde", | |
'isbn' => "726347342834723", | |
'page_number' => 312 | |
); | |
echo $assoc['title']; | |
$books = array( | |
array('title' => "asd"), | |
array('title' => "dsa") | |
); | |
echo $books[0]['title']; | |
$products = array( | |
'bikes' => array( | |
'sp-1023', | |
'sp-2344', | |
'sp-2342' | |
), | |
'rollers' => array( | |
'sp-2307', | |
'sp-204-n' | |
) | |
); | |
$tmp2 = 3; | |
$valami = $tmp2; | |
foreach ($products as $type => $block) { | |
echo "<h1>" . $type . "</h1>"; | |
echo "<div>"; | |
foreach($block as $bike) { | |
echo "<div> - " . $bike . "</div>"; | |
} | |
echo "</div>"; | |
} | |
echo $tmp[0]; | |
echo "\n"; | |
$i = 0; | |
foreach ($tmp as $lofasz) { | |
$i = $i + 1; | |
echo "<img src='/images/" . $lofasz . "' />" . $i; | |
} | |
echo $soseFogomHasznani; | |
echo $soseFogomHasznani+2; | |
echo $tmp[3]; | |
?> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment