Where can one find documentation on converting a text value in a variable to a numerical value in PHP?
To convert a text value in a variable to a numerical value in PHP, you can use the `intval()` function to convert the string to an integer. This function will parse the string until it encounters a non-numeric character. If you want to convert a floating-point number, you can use the `floatval()` function instead. Make sure to sanitize the input before converting to prevent any unexpected behavior.
$textValue = "123";
$numericValue = intval($textValue);
echo $numericValue; // Output: 123