php课程---初学练习
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题文档</title> </head> <body> <?pHp $hello = "你好"; $test = "hello"; echo $$test; $s="hello"; $str=&$s; $str = "world"; echo $s; /* 强类型语言: 1.整型:int 2.浮点型:float,double,decmial 3.字符类型:char 4.字符串类型:string 5.日期时间类型:datetime 6.bool型 7.object型 int a =5; string s=""; 弱类型语言: var a =5; */ ?> </body> </html>