Explain some most commonly use string functions in php?



Explain some most commonly use string functions in php?..

Answer / Varun Kumar Saxena

"Some commonly used string functions in PHP include:
1. strlen(): Returns the length of a string
2. substr(): Retrieves a portion of a string
3. str_replace(): Replaces specified characters or strings within a string
4. strtolower() / strtoupper(): Converts all characters in a string to lowercase or uppercase, respectively
5. trim(): Removes white space from the beginning and end of a string"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

Tell us what does $_cookie means?

1 Answers  


Which function would you use to determine the length of a string in php?

1 Answers  


Does php has a future?

1 Answers  


What are the rules to declare a php variables?

1 Answers  


How to upload file in php?

1 Answers  


What is serialization in php?

1 Answers  


What does nan stand for computer science?

1 Answers  


Where is session value stored php?

1 Answers  


How the values are ordered in an array?

1 Answers  


What is difference between Method overriding and overloading in PHP?

1 Answers  


What is the difference between $var and $$var?

1 Answers  


hello.. i am b.tech 4th year student. i am confused that i should learning php or java. I have some knowledge of java and developed project in java, but i want to develop my career in php. So plz suggest me , i should go with php or java.

5 Answers  


Categories