PHP Tips (5) About VAR in PHP

zhaozj2021-02-16  54

Win32 Apache2 uses GET method to pass the Chinese parameter will be error Test.php? A = Hello & B = You also pass the parameters to cause an internal error solution: "Test.php? A =". Urlencode. "& b =". Urlencode (you)

?

?

$ b? =? 3.1;? $ c? =? True;? var_dump ($ b, $ c); ?? / *? Output:? Float (3.1)? bool (true) ?? * / ??>? Not too clear, this function seems to be used. ?? var_dump? -? dumps? information? About? a? variable? description? Void? var_dump? (? mixed? expression? [,? mixed? expression? [,? ...]]) ??? this? function? returns? structured? information? about? one? or? more? expressions? that? includes? its? type? and? value.? Arrays? are? explored? recursively? with? values? indented? to? show? structure What is the structure information that returns to the type and value. Is there a relationship with the mandatory type conversion function ??? ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------- ?? var_dump () can output one or more variables, or to output multi-dimensional arrays Structure. ? ------------------------------------------------- -------------- "The $ b in the example is a floating-point variable, so the result is Float (3.1). Similarly, var_dump ('string'); output result is String (6)? "String" tells you a string variable, and tells you the length of the string of 6. ?? ------------------------------------------------- --------------- ?? is output together (type. Length. Value)? ---------------------- -----------------------------------------? I want to ask this function output Can the result you can't give it directly? ---------------------------------------------------------------------------------------------------------------------------------- ----------------------- ?? Try the following code:?

$ a = 22;? $ b = 'test'; $ c = var_dump ($ A, $ b);? echo? $ c; ??>? -------------- -------------------------------------? ?

转载请注明原文地址:https://www.9cbs.com/read-20186.html

New Post(0)