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.
Feed/

How can you compute a substring in PHP?

No cover

Channel

Computer science one

1 page

"PHP provides a simple function, substr() to compute a substring of a string. It takes at at least 2 arguments: the string to operate on and the starting index. There is a third, optional parameter that allows you to specify the length of the resulting substring."

Flowchart preview
👍
0
0 comments0 shares

Sign in to view and post comments.