Also, for the lazy variable typing. To me, strong typing means pounding the keyboard extra hard.

cheers,

Travis

Travis Low wrote:
It's not necessary. If you want to go to that much trouble, I would switch to Java for the speed. I stick with PHP for the shorter development time.

cheers,

Travis

Gabe wrote:

When scripting in a language (such as PHP) that doesn't require you to determine the variable type before you use it, is it still considered good technique to initialize it to the type you're going to use it as? Or is it considered ok to just use it?

e.g.

$strText = "";    //initialize
$strText = "now i'll give it a useful value";

Or is it just better to skip the first line? Just curious, thanks!

Gabe



-- Travis Low <mailto:[EMAIL PROTECTED]> <http://www.dawnstar.com>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to