PDA

View Full Version : PHP: str() and int() equivalents



Ubuntuud
April 5th, 2007, 07:48 PM
Simple question:

What are the PHP equivalents for the python str() and int() functions?

Thanks,
pieter.

theslut
April 5th, 2007, 08:34 PM
you mean for type converting? if so, you don't essentially need them and can set a variable to either. type conversion is automatic.

chrizel
April 5th, 2007, 09:15 PM
strval and intval

http://www.php.net/manual/en/function.strval.php
http://www.php.net/manual/en/function.intval.php

Ubuntuud
April 6th, 2007, 11:12 AM
That did the trick, thanks a lot!