Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2008-08-10 16:39:23
Size: 115
Editor: 74
Comment:
Revision 3 as of 2008-08-10 19:01:10
Size: 362
Editor: FredDrake
Comment: minor cleanup
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:

strtolower:
{{{
$x=strtolower('Some String');
echo $x
}}}

In Python you can do:
{{{
x = lower('Some String')
print x
}}}

But remember: everything is an object, including every string.
{{{
x = 'Some String'.lower()
print x
}}}

Comparation of simple tasks in php and python - a guide for php programmers wanting to create python applications

strtolower:

$x=strtolower('Some String');
echo $x

In Python you can do:

x = lower('Some String')
print x

But remember: everything is an object, including every string.

x = 'Some String'.lower()
print x

PhpPhrasebook (last edited 2008-11-15 13:59:56 by localhost)

Unable to edit the page? See the FrontPage for instructions.