Dwi Hyuga

Dwi Hyuga

  • NA
  • 116
  • 21.9k

How to recognize data type on PHP?

Jun 29 2016 11:57 PM
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)