How to find word in text and get the data after this word?

Here I have peremennaya this text "/question/new" , I need to look up the word "question" and get the data after the word .
And if there is no such word then it will give false if is true
June 10th 19 at 16:34
1 answer

Find more questions by tags PHP