Is there a way, in PHP, to change which variable is being changed based on another factor. Example:
$str1 = "The string is 1";
$str2 = "The string is 2";
$str3 = "The string is 3";
$X = 3;
echo $strX;
>> "The string is 3."
Edit: Thanks that's exactly what I needed :)
echo ${"str".$X};