Reply to true && print()

Your name:

Reply:


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

[Back to original 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

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