I need to “Add an element at the end of the array containing the character “%” (percent sign) repeated once for each character in the first element”.
$input = "0958192,Wherewithal,Eloquence,Panacea,42.10,5915"
I tried exploding the array to isolate the first element, but I’m not familiar with looping based on the number of characters when there is not a separator. Any input would be much appreciated
How about just using
strlento count the characters?