How can I change an integer to a string?

 
 
 

Here’s an example:

int $counter = 1;
string $bob = "bob";
string $number = $counter;

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License