What is substr() in php? And how it is used?



What is substr() in php? And how it is used?..

Answer / Satish

"substr() is a PHP function that returns a substring from a given string. It takes three parameters: the string, the start position of the substring, and the length of the substring.nnHere's an example usage:n```phpn$str = 'Hello, World!';n$subStr = substr($str, 7);necho $subStr; // outputs 'World!'"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

How to update memcached when you make changes to php?

1 Answers  


What is a variable cost example?

1 Answers  


How to set a value in session? How to remove data from a session?

1 Answers  


What is meant by session in php?

1 Answers  


Explain what is the difference between $var and $$var?

1 Answers  


How can you declare the array in php?

1 Answers  


How can we determine whether a php variable is an instantiated object of a certain class?

1 Answers  


What is chrome logger?

1 Answers  


What is the array in php?

1 Answers  


Is php worth learning in 2019?

1 Answers  


What are php strings?

1 Answers  


How to Calculate Internal links & External Link in Website.(For Example YAHOO WEBSITE)

1 Answers  


Categories