CalcBuilder Forum

string to uppercase

User bsnline 2018-02-28 22:55:51

Hi,
I have to normalize a string to uppercase.
I tried with Function "strtoupper();" but not work

for example:
$test=strtoupper($string);

suggestion, please.

Moonsoft support 2018-03-01 13:34:21

Hi,
that code is correct, so we suggest to double check if you have the right value at $string when that line is reached, that you are really showing $test at your output, and that you're not overriding it in any other part of your calculation, you can try

$test =$string." to UPPER: ".strtoupper($string);

in order to help you debugging the origin of the result.

Hope this helps, regards

User bsnline 2018-03-01 22:25:20

Hi,
okay work !
my mistake
thank you

...
CalcBuilder

Create dynamic calculators

Buy now!
...
List Manager

Build different lists for your site

Buy now!