Create a PHP script to convert a string to an integer without using intval() or strval().
MediumProblem Statement
Create a PHP script to convert a string to an integer without using intval() or strval().
Sample Input
"123"
Sample Output
123
Limits
Time: 2s · Memory: 256 MB