Bifalgorithm post · Computer science one · String Functions
How can you add or remove characters from a PHP string?
How can you add or remove characters from a PHP string? (Computer science one · String Functions) — "The last line extends the string by adding an additional c…
Ideas in this flowchart
- Modifying characters in a string
- A character position can be assigned a new value.
- The string can be extended by adding an additional character.
- Characters can be removed by setting them to the empty string.
- $a = "Apples!";
- $a[5] = "";
- The resulting string is "Apple!".