October 28, 2007

PHP-變數宣告

雖然看不出來有宣告的樣子..
不過我確確實實的有用到str、int、float、array的變數宣告唷...
(雖然我打的東西很像是直接用echo寫完的東西~.~..)

Link

$str=$name;
$name="I'm 豆子";
echo $name;

echo "my number is ";
$int=$num;
$num="42";
echo $num ;

$word=array("This is ","my ","homework ","this week.");
echo $word[0],$word[1],$word[2];

echo "date:";
$float=$date;
$date="10.28";
echo $date;

?>

由 b117096042 發表於 October 28, 2007 02:31 AM
迴響
發表迴響









記住我的資訊?





請依上圖輸入檢核碼: