GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 24-Jun-2008, 11:50
Howard_L Howard_L is offline
Senior Member
 
Join Date: Apr 2007
Location: Maryland/PA, USA
Posts: 1,004
Howard_L is a jewel in the roughHoward_L is a jewel in the roughHoward_L is a jewel in the rough

Understanding PHP arrays


Hi,
Comming from C mostly, I've been trying to wrap my head around how a php array is implemented.
It doesn't seem that they could be in contiguous memory, so are they all done as linked lists?

I've been looking at w3schools and tizag.com and some on php.net and haven't had seen anything much about it.
Inquiring minds, you know... It is probably buried in php.net someplace.
I now have an excuse to learn some php! I think it's pretty neat.
Many similarities to C ...like the functions , many of which are practically identical!
  #2  
Old 24-Jun-2008, 12:31
TurboPT's Avatar
TurboPT TurboPT is offline
Senior Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 1,441
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: understanding php arrays


Within a tutorial, found here, I found this under the 'associate array' portion of the tutorial.
Quote:
Originally Posted by site@theLink
In general PHP arrays are maps, which means that it is a type that maps values to keys.
Not sure how helpful that is (or not).
__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
  #3  
Old 24-Jun-2008, 23:04
Howard_L Howard_L is offline
Senior Member
 
Join Date: Apr 2007
Location: Maryland/PA, USA
Posts: 1,004
Howard_L is a jewel in the roughHoward_L is a jewel in the roughHoward_L is a jewel in the rough

Re: understanding php arrays


Thanks, sure that's helpful, it agreees with what I'm seeing here:
http://us2.php.net/types.array
Quote:
An array in PHP is actually an ordered map. A map is a type that associates values to keys.
...ordered map...hmmm , I'll have to think about that for a while...
Sure is one heck of an 'automatic variable".
Maybe something will pop up that gives a more complete explaination of what goes on under the hood.
  #4  
Old 25-Jun-2008, 05:16
TurboPT's Avatar
TurboPT TurboPT is offline
Senior Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 1,441
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: understanding php arrays


Interesting from your link:
Quote:
Originally Posted by phpSite
For more information, look towards the considerable literature that exists about this broad topic.
I can't (yet) seem to find the "considerable literature" they speak of.
I'm assuming that might be a white-paper or something.
__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
 
 

Recent GIDBlogMatch IP in CIDR by gidnetwork

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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 On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP - sizes and generation times cable_guy_67 MySQL / PHP Forum 3 29-Sep-2005 08:26
Help ! I need help starting up on Php ! onauc MySQL / PHP Forum 11 04-Jan-2005 23:57
PHP in HTML jrobbio Web Design Forum 4 24-Jul-2003 06:05
All the big PHP script collections that matter jrobbio MySQL / PHP Forum 5 06-Jun-2003 16:14
PHP Arrays, how big can they get? JdS MySQL / PHP Forum 11 13-Jan-2003 14:25

Network Sites: GIDNetwork · GIDApp · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 18:22.


vBulletin, Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.