Bifalgorithm post · Computer science one · Basics

What are PHP strings and how should they be treated?

What are PHP strings and how should they be treated? (Computer science one · Basics) — "PHP has a built-in string type. Internally, PHP strings are simply a se…

Ideas in this flowchart

  • PHP dispone de un tipo de datos incorporado para cadenas
  • Las cadenas de PHP están formadas internamente por una secuencia de bytes
  • Para trabajar con ellas, pueden tratarse como un arreglo de caracteres indexado desde cero
  • Las cadenas de PHP son mutables y pueden modificarse
  • Se recomienda tratarlas como si fueran inmutables
  • La manipulación debe apoyarse en las numerosas funciones que PHP proporciona para cadenas
Feed/

What are PHP strings and how should they be treated?

No cover

Channel

Computer science one

1 page

"PHP has a built-in string type. Internally, PHP strings are simply a sequence of bytes, but for our purposes we can treat it as a 0-indexed character array. PHP strings are mutable and can be changed, but it is considered best practice to treat them as immutable and rely on the many functions PHP provides to manipulate strings."

Flowchart preview
👍
0
0 comments0 shares

Sign in to view and post comments.