substr_replace()
Replace a byte range selected by position, not by matching text.
CKTIS / Knowledge base
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
Replace a byte range selected by position, not by matching text.
Strip matching bytes at both ends, leaving internal characters untouched.
Use a comparator on values while keeping each original key.
Uppercase the first byte if it is an ASCII lowercase letter.
Uppercase an ASCII lowercase letter at the beginning or immediately after a listed separator.
Sort a map by passing keys to an integer comparator.
Reconstruct a value from trusted PHP serialization data.
Decode form-style text by turning plus into a space and percent escapes into bytes. %2B represents an actual plus.
Encode one form or query value using application/x-www-form-urlencoded rules.
Sort values by an integer comparator and replace every original key with a consecutive index.
Write diagnostic information about one or more values, including their types and string lengths in bytes.
Render a value as PHP source syntax.
An abstract class can supply shared implementations while leaving abstract methods without bodies.
In foreach, as binds each item to a value variable and optionally a key variable.
Leave the nearest loop or switch immediately.
Mark a possible entry point in switch.
Handle a thrown object whose class matches the first applicable catch clause.
Declare an object type with its own properties and methods.
Create a new object using a shallow property copy and then invoke __clone() if defined.
Declare a named constant using a constant expression, without a dollar sign.
Skip the rest of the current loop iteration.
Set a compilation or execution directive for the file or supported block. strict_types must appear at the start of the file and makes ordinary scalar argument checks depend on the calling file.
Define the fallback entry point of a switch when no case matches.
This alias of exit terminates the entire script.