/ Published in: PHP

This is the PHP equivalent to http://snipplr.com/view/12074/delete-last-comma/
You will use only the deleteLastComma() function!
You will use only the deleteLastComma() function!
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function instrrev($n,$s) { } function mid($s,$x,$w="") { //$w is optional } function deleteLastComma($valStr) { $lastCommaPos = instrrev($valStr, ","); $valStr = mid($valStr, 1, $lastCommaPos - 1); return $valStr; }
URL: http://www.totaldream.org
Comments
