Bifalgorithm post · Computer science one · String Functions
How can you compute a substring in PHP?
How can you compute a substring in PHP? (Computer science one · String Functions) — "PHP provides a simple function, substr() to compute a substring of a strin…
Ideas in this flowchart
- La fonction PHP substr() calcule une sous-chaîne d’une chaîne.
- Elle prend au moins deux arguments.
- Le premier argument est la chaîne sur laquelle l’opération est effectuée.
- Le deuxième argument est l’index de départ.
- Un troisième argument facultatif permet de spécifier la longueur.
- La longueur spécifiée détermine la taille de la sous-chaîne résultante.