Question from the PHP8 test

Check if a string starts with a substring in PHP

Hard

How can you check if a string $string = "This is a test sentence" starts with "This is"?

Author: DamienStatus: PublishedQuestion passed 84 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!