How to increment a number and keep as a string?
Posted: Tue Feb 21, 2006 10:15 pm
Input =
$setup_username1 = test0001;
It STILL always shows u as test1 and I need it to show up as all four.
How can I do this please? I just spent an hour and a half trying many things gettting nowhere. strval() did not work.
$setup_username1 = test0001;
Code: Select all
$setup_username_test = explode("test",$setup_username1);
$setup_number = $setup_username_test[1];
$setup_number = strval(intval($setup_number)+1);How can I do this please? I just spent an hour and a half trying many things gettting nowhere. strval() did not work.