This is a discussion on variables type in php within the alt.comp.lang.php forums, part of the PHP Programming Forums category; It's a newbie question... Is it possible to type variable in PHP inspite this is a loose type language. ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
for information about variable types in php you can visit this web
site. http://www.phpbuilder.com/manual/lan...e-juggling.php |
|
|||
|
Tijs Verwest wrote:
> It's a newbie question... > > Is it possible to type variable in PHP inspite this is a loose type > language. Or would that be required in some cases? PHP's not loosely typed - it's dynamically typed which is subtly different. Go RTFM - there's lots of good stuff there including... ctype_digit() is_bool() is_null() is_float() is_int() is_string() is_object() is_array() PHP also supports null values in variables as well as the usual integer, float and string scalar types. This can be useful sometimes, but often confuse people without prior experience (usually from relational DBs). HTH C. |
|
|||
|
"Tijs Verwest" <stephane.vollet@bluewin.ch> ha scritto nel messaggio news:443c0c07$1_7@news.bluewin.ch... > It's a newbie question... > > Is it possible to type variable in PHP inspite this is a loose type > language. Or would that be required in some cases? > > php autoset variable type if have problem use: http://it.php.net/manual/en/function.settype.php to set type var |
![]() |
| Thread Tools | |
| Display Modes | |
|
|