Home : General : Internet Technologies :

General: Internet Technologies: Re: [Unquick] General PHP question - mktime(): Edit Log

Here is the list of edits for this post
Re: [Unquick] General PHP question - mktime()
The[] represent a reference to the array. For example, if I use;

Code:
<?

$string = "this is a test string";
$exploded = explode(" ",$string);

for ($i = 0; $i <= 4; $i++) {
print "\$exploded[\$i] => " . $exploded[$i] . "<BR>";
}

?>

This would print something like;

$exploded[0] => this
$exploded[1] => is
$exploded[2] => a
$exploded[3] => test
$exploded[4] => string

As you can see, each word can be reference with the $array_name[] call. i.e $array_name[0].

Hope thats clear Smile

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: Jun 2, 2003, 8:02 AM

Edit Log: