Chapter

Tokenizing

From ComputerScienceOne by Dr Chris Bourke

Concepts

  1. How does PHP compare strings with case-sensitive and case-insensitive functions?

    "strcmp() compares two strings and returns zero when they are equal. Shorter strings precede longer strings, so strcmp(\"apple\", \"apples\") returns a negative value. strcmp(\"Apple\", \"apple\") als

  2. How can PHP split strings into tokens using explode() and preg_split()?

    "Tokenizing is the process of splitting up a string along some delimiter. For example, the comma-delimited string, \"Smith,Joe,12345678,1985-09-08\" contains four pieces of data delimited by a comma.

Tokenizing | ComputerScienceOne | Bifalgorithm | Bifalgorithm