PHP strings and input
Clean up names, compare codes, and read quantities from a form.
Inspect text and Unicode
- strlenCheck for an untouched delivery note
- strlenCheck the length of a parcel code
- substrRead the seat row
- trimCheck an attendance comment
Find and compare
- strposFind a prefix match at byte position zero
- preg_matchAccept a printed seat identifier
- str_containsFind a word on a shelf label
- str_ends_withFind filenames with a receipt extension
- str_starts_withRecognize an invoice prefix
- strcasecmpMatch a booking code regardless of letter case
- strcmpOrder two shelf areas
- strcmpVerify a locker code
- strrposFind the final dot in an archive name
Clean and replace
- ltrimAlign a pasted seat label
- preg_replaceMask just the first locker number
- preg_replaceHide both ticket numbers
- rtrimKeep the indentation of a timetable
- str_replacePrint a shelf code with readable separators
- strtolowerNormalize a course tag
- strtoupperStandardize an airport code
- trimClean up a copied booking code
Split, join, and extract
- explodePreserve the rest of a configuration value
- explodeCount handover tasks
- implodePrint a campus shuttle route
- string concatenationAttach a seat number to a row
- substrRead a department on a semester timetable
Format and convert
- sprintfPrint a student badge
- str_repeatDraw three completed checkpoints
- strlen (bytes)Measure a café line on a receipt