I have the following variable for example:
$teste = 'Uma frase qualquer!';
In Python , for me to retrieve the word frase
, I would use the notation variavel[inicio:fim]
:
teste = 'Uma frase qualquer!'
print(teste[4:9]) # frase
Is it possible to use the same notation in PHP ?