Developer Encyclopedia

Learn to Code — CodePrimer

A classroom encyclopedia of HTML5, CSS3, JavaScript, PHP 8, SQL, and Laravel. Search a guide, then follow the learning path from beginner to advanced.

Clear
Popular:

Tag filter: #strings Remove

Showing 7 of 291 guides

JavaScript Intermediate

TextEncoder and TextDecoder

How do I turn a string into UTF-8 bytes in the browser?

Browser APIs 6 min
JavaScript Beginner

Template Literals

How do I build a sentence from a title and a seat count?

Language Basics 6 min
PHP 8 Beginner

PHP Strings: Concatenation, Interpolation, and Multibyte Length

How do I build and measure strings safely in PHP 8?

Language Basics 8 min
PHP 8 Intermediate

preg_match for a Slug

How do I test that a slug contains only lowercase letters and hyphens?

Language Basics 7 min
PHP 8 Beginner

PHP str_contains, str_starts_with, and str_ends_with

How do I test a string without strpos tricks?

Language Basics 6 min
PHP 8 Intermediate

mb_substr for Multibyte Titles

How do I shorten a title without splitting a character?

Language Basics 6 min
SQL / MySQL Intermediate

CHAR_LENGTH and LENGTH

How do I measure a title in characters instead of bytes?

Queries 6 min

Need more coins?

You do not have enough coins for this action.

Your balance: 0 coins

Share

Reactions

Loading reactions…