+ 1
How can i replace string number with other numbers ?
$string1 = âHeight of 220cm x Width of 75cmâ; $string2 = âHeight of 86.5â x Width of 29.5â; i already have the code for conversion to inches but i cant replace just the numbers
1 RĂ©ponse
+ 1
Hi! I made a small code for you to see how can you change numbers in strings with variables. You can check the code here:
https://code.sololearn.com/wd7FT7QwRc7A/?ref=app
You can use functions defined as variables in strings. The string displays the return value of the function.