You are here: true && print() « PHP Programming Language « IT news, forums, messages
true && print()

Posted by Stefan Weiss on 06/17/05 04:46

Hi.

function printx($str) {
echo $str;
}

true && printx("foo");
true && print("bar");


Why do I see "foo", but not "bar"?

According to the manual, print and echo are language constructs, not
functions. That seems to be the reason why they don't behave as
expected, but what I'm looking for is an explanation. Is there a
rationale for not executing print() in this context?

tia,
stefan

 

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

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