css border corner joint and cut
css border property seems easy to use. “border:1px solid red;” will draw a border of 1-pixel thick solid red color around a block. But think a little further, you may […]
css border property seems easy to use. “border:1px solid red;” will draw a border of 1-pixel thick solid red color around a block. But think a little further, you may […]
WordPress has a function download_url that can download a file(such as an image) from remote site. I got this “cURL error 60: SSL certificate problem: certificate has expired” error when […]
You may have noticed the strange strings in WordPress’ wp_options table(in some option_value) like this: a:3:{i:0;i:123;s:3:”abc”;i:456;i:789;s:3:”def”;} It seems you can decipher it but it is not very easy to read. […]
Both var_dump and print_r can print php variables in detail. What is the difference between print_r and var_dump? print_r displays less information than var_dump, thus more concise. print_r only shows […]
Php has a SimpleXMLElement class to parse xml document. The official website gives quite a few examples on how to use it, but no explanation of related concepts. xml has […]
Html elements are so easy to learn. Even you are not major in computer science, even you are not a programmer, you can easily master them and use them to […]
The flag parameter of preg_match_all is complicated and confusing. The official document says the default value of flag is 0, which is wrong. In fact, the flag parameter is defaulted […]
You might think it is a hard work to upload a file. At the client side, do I need to write code to open the file, read its content, then […]
I have a need to replace all email addresses of form admin@xxxx.com or admin@yyy.net or admin@zzzzz.org with root@localhost in all files under several folders and all their sub-folders. How can […]
How to remove the last several characters of a string? I have not considered this problem until recently. It turns out there are quite a few methods to delete the […]