variables type in php

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. ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2006
Tijs Verwest
 
Posts: n/a
Default variables type in php

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?


Reply With Quote
  #2 (permalink)  
Old 04-12-2006
fwdkhan@gmail.com
 
Posts: n/a
Default Re: variables type in php

for information about variable types in php you can visit this web
site.

http://www.phpbuilder.com/manual/lan...e-juggling.php

Reply With Quote
  #3 (permalink)  
Old 04-12-2006
Colin McKinnon
 
Posts: n/a
Default Re: variables type in 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.
Reply With Quote
  #4 (permalink)  
Old 04-14-2006
Gufo Rosso
 
Posts: n/a
Default Re: variables type in php


"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


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:01 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0