Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to convert php types into strings -CSDN forum
How to convert php types into strings -CSDN forum
//Convert a number into a string

$str = sprintf('%07d ', 1000);

Conversion between other types:

(int), (integer)- "Convert to an integer;

(bool), (boolean)- "Convert to Boolean type;

(float), (double), (real)- "Convert to floating-point type;

(String)-"String;

(Array)-"Arrayed;

(Object)-"Become an object;