strval()
Obtain the string representation for output. true becomes "1", while false and null both become the empty string.
CKTIS / PHP
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
Obtain the string representation for output. true becomes "1", while false and null both become the empty string.
Extract a byte slice. Negative offset counts from the end and negative length excludes bytes from the far end.
Count nonoverlapping, case-sensitive occurrences within a byte window.
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.