I want test if a String1
start by a string2
in PHP
I found this question: How to check if a string starts with a specified string
But I want do it inside an if
condition - not in a function.
I did it like this but I'm not sure:
if(startsWith($type_price,"repair")) {
do something
}
Can you please correct me if it's false?