how to change all input field values into upper case

前端 未结 3 857
生来不讨喜
生来不讨喜 2021-01-27 05:35

I have set of PHP fields.

Before sending the values into a query, I want to change the letters to upper case.

Is there a way to do something like:



        
3条回答
  •  时光说笑
    2021-01-27 06:03

    You want to use strtoupper

    $cust_name = "john";
    echo strtoupper($cust_name); // Outputs JOHN
    

提交回复
热议问题