# Typ of php\_variable

**URL:** <https://forum.kirupa.com/t/typ-of-php-variable/74935>\
**Category:** Uncategorized\
**Created:** [January 4, 2005, 10:24am UTC](https://forum.kirupa.com/t/typ-of-php-variable/74935 "2005-01-04T10:24:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmerens](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bmerens](https://forum.kirupa.com/u/bmerens)\
**Post date:** [January 4, 2005, 10:24am UTC](https://forum.kirupa.com/t/typ-of-php-variable/74935/1 "2005-01-04T10:24:18Z")

</div>

hello,

my AS calls remove.php which returns a value.

the php file is called with :

sendvar = new LoadVars(); // I send some variables to php =\> no probleme  
reception\_var = new LoadVars();  
sendvar.sendAndLoad("…etc =\> is ok too

the php return the value with :

print “&counter=1”;

by tracing : reception\_var.counter I get : 1 =\> until here no problem

BUT :

I want to use the variable like this :

if (reception\_var.counter==1){ trace “counter = number”}  
if (reception\_var.counter==“1”){ trace “counter = string”}

but none of the 2 statments is true !!!

I don’t know what to do :ear:  
thanks for your help 🙂
