Does this even make PHP? -1

Source: Internet
Author: User

Companies are useful to these businesses, it's always right to know more about them.

Now start a series of PHP learning ...

<?PHP$boo=true; if($boo==true)        Echo' Variable $boo is true! ‘; Else        Echo' Variable $boo is false! ‘; Echo"<p>"; $i= ' will see only once '; Echo"$i"; Echo"<p>"; Echo' $i '; Echo"<p>"; $str 1= 1234567890; $str 2= 0x1234567890; $STR 3= 01234567890; $STR 4= 01234567; Echo' Number 1234567890 different binary output results:<p> '; EchoThe ' decimal result is: '.$str 1.‘ <br> '; EchoThe ' hexadecimal result is: '.$str 2.‘ <br> '; Echo' The result of octal is: '; if($STR 3==$STR 4){        Echo' $str 3 = $str 4 = '.$STR 3; }Else{        Echo' $str 3-STR4 '; }    $arr 1=Array(' This ', ' is ', ' a ', ' example ')); $arr 2=Array(0=> ' php ',1=> ' is ', ' the ' = ' and ' the ', str = ' best '); $arr 3[0] = ' tmpname '; Echo"<p>"; Echo $arr 1[1]; Echo $arr 2[' Str ']; Echo $arr 3[0]; Echo"<p>"; EchoThe variable (\ $string 1) is directly assigned the value null: "; $string 1=NULL; if(Is_null($string 1))        Echo"String1 = null"; Echo"<p>"; $num= ' 3.1415926r*r '; Echo' Use the (integer) operator to convert the variable $num type: '; Echo(integer)$num; Echo"<p>"; $boo= "03563562345245"; if(Is_numeric($boo))            Echo"Yes, the \ $boo is a phone number:$boo!"; Else            Echo"Sorry, this was an error!"; Echo"<p>"; Define("MESSAGE", "can see once"); EchoMESSAGE. " <BR> "; Echo"<p>"; EchoMessage. " <BR> "; Echo"<p>"; Define("COUNT", "can see multiple times",true); Echo COUNT." <br> "; Echo"<p>"; Echo Count." <BR> "; Echo"<p>"; $name= "Count"; Echo constant($name)." <BR> "; Echo(defined("MESSAGE")). " <BR> "; Echo"<p>"; Echo"Current file path:".__file__; functionZdy () {Static $message= 0; $message+ = 1; Echo $message." "; }        functionzdy1 () {$message= 0; $message+ = 1; Echo $message." "; }         for($i= 0;$i< 10;$i++) Zdy (); Echo"<br>";  for($i= 0;$i< 10;$i++) zdy1 (); Echo"<br>";?>

Does this even make PHP? -1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.