Moonsoft Software Solutions

string to uppercase

Started 28 Feb 2018 · 2 replies

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

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

    suggestion, please.
  2. Moonsoft support
    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
  3. bsnline
    Hi,
    okay work !
    my mistake
    thank you

Still stuck?

Customers with an active license can open a support ticket.

Log in to open a ticket