Monday, February 21, 2011

php is a char in a string?

Character string as an array
String Handling in PHP example from a Well House Consultants training course
More on String Handling in PHP
head
title The Flying Alphabet title
/head
body bgcolor=white
Single and double quotes

"Alpha", "b" => "Bravo", "c" => "Charlie", "d" => "Delta", "e" => "Echo", "f" => "Foxtrot",
"g" => "Golf", "h" => "Hotel", "i" => "India", "j" => "Juliet", "k" => "Kilo", "l" => "Lima", "m" => "Mike",
"n" => "November", "o" => "Oscar",
"p" => "Papa", "q" => "Quebec","r" => "Romeo", "s" => "Sierra", "t" => "Tango", "u" => "Uniform",
"v" => "Victor","w" => "Whiskey", "x" => "Xray", "y" => "Yankee", "z" => "Zulu");
$name=$_GET[name];

$flight = "$name, If you're flying, you're known as";

for ($index=0;$index
/body

No comments:

Post a Comment