array new also if used

solution A
0

1 $myarray=array();
2 .. code that fill $myarray;
------------------------------------


solution B
0

1 unset($myarray);
2 .. code that fill $myarray;
------------------------------------


if myarray going from point 0, when it is at point 1
is make new totally?
I want that in the point 2 the array is how the first time used
(not affect by previous use; all how new )
artev [ Di, 03 Juli 2007 22:33 ] [ ID #1758692 ]

Re: array new also if used

artev wrote:

> if myarray going from point 0, when it is at point 1
> is make new totally?

$myarray=array();

Any values $myarray had before will be lost, but the variable will still be an
array.



--

//Aho
Shion [ Di, 03 Juli 2007 22:57 ] [ ID #1758693 ]
PHP » alt.php » array new also if used

Vorheriges Thema: mime_content_type() returns empty string for AVI using PHP5
Nächstes Thema: mkdir() and safe_mode