PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
<?php
$bakery = array(
"cherry" => "5.00",
"cola" => "7.66",
"vanilla" => "4.51",
);
echo "the price for a cherry flavour is $bakery['cherry'] <br>";
echo "the price for a cola flavour is $bakery['cola'] <br>";
echo "the price for a vanilla flavour is $bakery['vanilla'] <br>";
?>
?>
Well..the problem is that I don't get the values.
I only get:
the price for a cherry flavour is
the price for a cola flavour is
the price for a vanilla flavour is
<?php
$text = "blblblbllblblblbllbl<br> text text <br>"
?>
\n and \r are the equivalent of pushing the enter key when typing, your code will start on a new line when you view the HTML source code but it will have no affect on what the browser displays.