You are here: problems with list.. « PHP Programming Language « IT news, forums, messages
problems with list..

Posted by Sergei Riaguzov on 07/25/07 11:57

I have a function returning smth like list($a,$b):

var_dump says:

list(string $a, string $b) blabla()

How can use this strings now? I try:

list($a, $b) = blabla();
print($a);

but it's won't work returning empty string.

I tried also:

$result = blabla();
print $result[0];

but it also won't work.

The only thing I can do is to iterate result with foreach, then it works
nicely, but how should I use the result of blabla() function without
foreach? I just want to get to $a and $b.

 

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

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