You are here: what is better for performance? « PHP « IT news, forums, messages
what is better for performance?

Posted by Karel Kozlik on 12/06/05 12:56

Hi,
I am just thinking about that what is better for storeing structured
variables in point of view of performance.

Is better store structured variables in associative array, for example:

$person['first_name'] = 'Karel';
$person['last_name'] = 'Kozlik';
$person['address'] = 'somewhere on Earth';

or in object like this:

$person->first_name = 'Karel';
$person->last_name = 'Kozlik';
$person->address = 'somewhere on Earth';

I feel that objects are better for performance, but work with
associative arrays is pleasanter for me. May be the diference in
performance measurable? (in heavy loaded environment)

thanks Karel

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация