Concept
How can you add or remove characters from a PHP string?
ComputerScienceOne / String Functions
"The last line extends the string by adding an additional character. You can even remove characters by setting them to the empty string.\n\n1 $a = \"Apples!\";\n\n2 $a[5] = \"\";\n\n3 //a is now \"Apple!\""
Related Ideas
- How can you compute a substring in PHP?ComputerScienceOne · String Functions
- How can you create and reassign strings in PHP?ComputerScienceOne · Basics
- How are PHP strings copied and modified by character?ComputerScienceOne · Basics
- How do you concatenate strings in PHP?ComputerScienceOne · String Functions
- How can you extract substrings from a string in PHP?ComputerScienceOne · Arrays of Strings