01 2020 档案
摘要:``` name) //wrong can not use this as a parameter function __construct($name) //functions starting with __ change and set the value of any attributes
阅读全文
摘要:https://www.tutorialdocs.com/article/16 php magic methods.html
阅读全文
摘要:``` 30) { $current =$this->$property; //notice: $this->property(without $) will create a new attribute called property, $property $this->$property= $value; echo "You are going to update $property from
阅读全文
摘要:``` '; require('reusable.php'); echo 'The script will end now.'; /* there are three situations here 1. if the reusable.php are those codes, which includes php tags '; ?> then, codes will be processed
阅读全文
摘要:how does php work with Apache? https://stillat.com/blog/2014/04/02/how does php work with the web server and browser
阅读全文
摘要:``` "; //3. htmlspecialchars() conflict with html tags $new = htmlspecialchars("Test"); echo $new; // <a href='test'>Test</a> $new = htmlspecialchars("Test", ENT_QUOTES); echo $new; // <a href='test'>
阅读全文
摘要:``` '; //var_dump($numbers); //var_dump($odds); //var_dump($letters); $a[3] = 4; //automatically resize the array //4 $student = ['amy', 'joseph', 'mike']; //read array for ($i = 0; $i 89, 'joseph' =>
阅读全文
摘要:simple functions
阅读全文
摘要:1,执行Linux命令 2.为变量起别名 <?php $a = [1,2,3]; $b = [4,2,3]; print_r($a+$b); print_r($b+$a); ```
阅读全文

浙公网安备 33010602011771号