array always new

This is a discussion on array always new within the alt.comp.lang.php forums, part of the PHP Programming Forums category; solution A 0 1 $myarray=array(); 2 .. code that fill $myarray; ------------------------------------ solution B 0 1 unset($myarray); 2 .. code that ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-03-2007
artev
 
Posts: n/a
Default array always new

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 )
Reply With Quote
  #2 (permalink)  
Old 07-05-2007
Alexey Kulentsov
 
Posts: n/a
Default Re: array always new

artev wrote:
> 1 $myarray=array();


I think this is better then second variant.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:38 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0