Helmut
Posts: 9
|
| Posted: 09/16/2004, 10:28 AM |
|
Hi,
I have to convert some Perl routines to PHP. But Perl is not my world.
Maybe someone can help me to convert the following if statement:
if (length($ff)<13) { return substr($ff." " x 9, 0, 12); }
the problem is the substr statement, I have no idea.
I hope, someone can advice me.
Thanks, Helmut
|
 |
 |
Nicole
Posts: 586
|
| Posted: 09/17/2004, 2:36 AM |
|
Helmut,
Please refer to PHP manual http://www.php.net/manual/en/ref.strings.php
_________________
Regards,
Nicole |
 |
 |
|