1
Answer

How to recognize data type on PHP?

Dwi Hyuga

Dwi Hyuga

8y
753
1
i have some problem like this,
 i have string,
  1. $str = "D33 D 123"
 after that, i explode it,
  1. $str1 = explode(" "$str); 
 i make it into three variable,
  1. $zero = $str1[0];  
  2. $one = $str1[1];  
  3. $two = $str1[2]; 
 how to recognize each variable as it's data type, for example the variable $three is recognized as int??
thanks
Answers (1)