Not Just A Random Blog archive
Category: php

06/09/2011

PHP Arrays

by Cyle
Categories: php
Tags: ,
Comments: 1 Comment

In php, arrays contain data (also known as values) per key. The key can be an integer or a string, and the value can be any php data type. Let’s start with the basics… Creating an Array To create a new array we use the array() function: $myarray = array(); //creates an empty array$myarray =[…]

06/02/2011

PHP Updating Copyright Script

by Cyle
Categories: php
Tags: , , ,
Comments: Leave a Comment

Most all websites have a copyright disclaimer at the bottom of the page, but having a copyright line that is out of date can make a website look as if it is rarely updated. This simple php script keeps the copyright year current. 1 2 3 < ?php echo ‘&copy; ‘.date("Y").’ – Website Name’; ?><[…]


user-avatar
Today is Wednesday
03/29/2017