blue
green
red
Blue
Green
Red
3
4
Code:
<html>
<head>
<title>PHP TEST YAHHH</title>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>
<body>
<div class="topbar">
<?php
include 'navbar.php';
?>
</div>
<?php
//arrayssssssssssssssss
$colors = array('red','blue','green');
print_r($colors[1]);
echo '<br>';
print_r($colors[2]);
echo '<br>';
print_r($colors[0]);
echo '<br>';
echo ucwords($colors[1]);
echo '<br>';
echo ucwords($colors[2]);
echo '<br>';
echo ucwords($colors[0]);
echo '<br>';
echo count($colors);
echo '<br>';
$colors[3] = "yellow";
echo count($colors);
echo '<br>';
/* outputs in this format:
blue
green
red
Blue
Green
Red
3
4
*/
?>
<div class="codebox">
<h3>Code:</h3>
<?php
highlight_file("ex014.php");
?>
</div>
</body>
</html>