You are here: Syntax not allowed « PHP Programming Language « IT news, forums, messages
Syntax not allowed

Posted by Bob Stearns on 02/26/06 02:03

The following is not allowed (simplified for this forum): but it seems
reasonable to me. Could some one explain mw lack of insight?

$t = (array(1=>"Sold", 3=>"Transit"))[$location_id];

Parse error: parse error, unexpected '[' in
/var/www/html/GEM-is/batchJobs/sales.php on line 183

 

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

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