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 are PHP strings copied and modified by character?ComputerScienceOne · Basics
- What are PHP strings and how should they be treated?ComputerScienceOne · Basics
- How can individual characters in a string be accessed safely?ComputerScienceOne · Basic Operations
- How can strings be modified or copied?ComputerScienceOne · Basic Operations
- How can you compute a substring in PHP?ComputerScienceOne · String Functions
- How do you concatenate strings in PHP?ComputerScienceOne · String Functions
- How are strings, statements, and code blocks written in PHP?ComputerScienceOne · Basic Syntax Rules
- How can you create and reassign strings in PHP?ComputerScienceOne · Basics