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!
...
Support/development 40 hours

With the peace of mind of having a professional team at your service (20% discount)

Buy now!