InterviewSolution
| 1. |
How To Remove Leading And Trailing Spaces From User Input Values? |
|
Answer» If you are taking input values from users with a Web form, users may enter extra SPACES at the BEGINNING and/or the END of the input values. You should always use the trim() function to remove those extra spaces as shown in this PHP script: If you are taking input values from users with a Web form, users may enter extra spaces at the beginning and/or the end of the input values. You should always use the trim() function to remove those extra spaces as shown in this PHP script: |
|