$value){ // Skip php internal variables if(substr($key,0,1) == "_" || in_array($key,["argv","argc"])) continue; echo "Variable Name: " . $key . " = " . get_class($value) . PHP_EOL; }