Hi..guys!What is the string function that cut 01,02,03 to 1,2,3?Thanks...
Hi..guys!What is the string function that cut 01,02,03 to 1,2,3?Thanks...
that would replace all zero's though not just the leading zero'sPHP Code:str_replace('0', '', $string);
Problem resolved,thanks..my string only has a zero in leading position.
More thorough:PHP Code:<?php
$string = explode(',',$string);
foreach ($string as $k=>$v) {
$string[$k] = ($v+1)-1;
}
//$string is now fixed
?>
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Bookmarks