Keyword try
Enclose operations in an exception-handling region with at least a catch or a finally block.
CKTIS / PHP
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
Enclose operations in an exception-handling region with at least a catch or a finally block.
Remove a variable binding or array entry.
Import a name or alias within a namespace at compile time.
The historical var property declaration gives the property public visibility.
Check the condition before every iteration, including the first.
A function containing yield returns a Generator without running its body immediately.
Delegate iteration to an array or Traversable, forwarding its keys and values.
The public instance method `__call` receives the requested spelling and arguments when an object method is missing or inaccessible in the caller’s scope.
The public static method `__callStatic` handles a missing or inaccessible method in a static call.
Creating an instance with new invokes its applicable `__construct` with the supplied arguments.
The parameterless `__destruct` can release resources when the object has no surviving references or during shutdown.
Reading a missing property or one inaccessible in the current scope can invoke the public `__get` with the property name.
An object with a public `__invoke` method can be used as a callable.
A call to isset or empty on an inaccessible or missing property can invoke public `__isset`.
Writing a property that is missing or inaccessible from the caller can invoke public `__set` with its name and assigned value.
Define public `__toString` to supply a string representation during echo, concatenation or an explicit cast.
Calling unset on an inaccessible or missing property can invoke public `__unset` with its name.
The `+` operator adds two numbers, such as the order subtotal and the delivery charge.
Add the delivery charge to the order total and store the new amount.
The angle-bracket spelling produces the same result as `!=`. It returns false for zero and the boolean false because those values are loosely equal.
Combine two arrays by key, taking the left value whenever both arrays contain the same key.
Assignment stores the value of the right expression in the writable target on the left.
Extract flags shared by two masks.
Keep in the variable only the flags allowed by the right mask.