What is the function of trim?



What is the function of trim?..

Answer / Vijay Prakash Singh

trim is a built-in PHP function that removes any whitespace characters from the beginning and end of a string, but leaves spaces between words intact.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

Write the code for upload a video file in PHP.How will You Play this in Your Page.?

2 Answers   ASD Lab, Convex Digital,


What is strlen php?

1 Answers  


What is the basic syntax of Php?

1 Answers  


Which functions are used to count the total number of array elements in php?

1 Answers  


Why json is used in php?

1 Answers  


What are sql injections, how do you prevent them and what are the best practices?

1 Answers  


What is the use of friend function?

7 Answers   Wipro,


What is empty () in php?

1 Answers  


How to get tabels from database in php andd display it in the table form using codelgniter? plz help me

2 Answers  


What are the rules to declare a php variables?

1 Answers  


Explain the advantages of using PHP?

1 Answers  


When is a conditional statement ended with endif?

1 Answers  


Categories