|
Posted by Curtis on 12/18/05 05:35
I'm used to working with a strongly-typed language, Object
Pascal, so just plopping a $variable down anywhere takes
some getting used to--particularly when one instance gets
misspelled like $varaible, say.
Hmmm... seems this code was working only a minute ago!
One surprise is PHP's apparent tolerance of referencing
array elements that don't exist. Object Pascal would burp in
a hurry.
Say I go
$parts = explode("|", "x | y | z");
PHP doesn't seem to mind if I tell it
$text = $parts[3].$parts[4];
Is this looseness OK, or is gonna bite us someday?
--
Curtis
Visit We the Thinking
www.wethethinking.com
An online magazine/forum
devoted to philosophical
thought.
Navigation:
[Reply to this message]
|