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 阅读全文
posted @ 2020-01-29 20:11 Coding_Changes_LIfe 阅读(143) 评论(0) 推荐(0)
摘要:https://www.tutorialdocs.com/article/16 php magic methods.html 阅读全文
posted @ 2020-01-28 22:17 Coding_Changes_LIfe 阅读(71) 评论(0) 推荐(0)
摘要:``` 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 阅读全文
posted @ 2020-01-27 20:09 Coding_Changes_LIfe 阅读(170) 评论(0) 推荐(0)
摘要:``` '; 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 阅读全文
posted @ 2020-01-26 23:40 Coding_Changes_LIfe 阅读(151) 评论(0) 推荐(0)
摘要:how does php work with Apache? https://stillat.com/blog/2014/04/02/how does php work with the web server and browser 阅读全文
posted @ 2020-01-26 19:10 Coding_Changes_LIfe 阅读(107) 评论(0) 推荐(0)
摘要:``` "; //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'> 阅读全文
posted @ 2020-01-25 21:06 Coding_Changes_LIfe 阅读(162) 评论(0) 推荐(0)
摘要:``` '; //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' => 阅读全文
posted @ 2020-01-23 19:27 Coding_Changes_LIfe 阅读(116) 评论(0) 推荐(0)
摘要:simple functions 阅读全文
posted @ 2020-01-23 12:00 Coding_Changes_LIfe 阅读(88) 评论(0) 推荐(0)
摘要:1,执行Linux命令 2.为变量起别名 <?php $a = [1,2,3]; $b = [4,2,3]; print_r($a+$b); print_r($b+$a); ``` 阅读全文
posted @ 2020-01-19 22:15 Coding_Changes_LIfe 阅读(129) 评论(0) 推荐(0)