php

I love php array because the array’s key can not only be number but also be string. $arr=array(“a”,”b”,”c”); $arr=[“a”,”b”,”c”]; $arr=array(“k1″=>”a”,”k2″=>”b”,”k3″=>”c”); $arr=[“k1″=>”a”,”k2″=>”b”,”k3″=>”c”];   That makes it an association array or a […]

You must have seen url redirect. You click an html redirect link. The link does not take you to the page it points to, but redirects the url to another […]

I set a cookie as follows: setcookie(“mycookie”, “1”, time()+8); The cookie “mycookie” is set to “1” and will expire in 8 seconds. The http Set-Cookie header received from the server […]

php has a powerful function called mail(). You can use this function to send emails from your script. <?php // the message $msg = “First line of text\nSecond line of […]

If you do online business with Chinese, you are almost inevitable to integrate alipay payment gateway into your website. Today, we learn how to integrate alipay gateway on your site […]

The most often occurred use case is: user opens a webpage; the webpage reads data from database and displays it to the user; the user modifies some of the data […]