Difference between the substr() and substring() in JavaScript?

Difference between the substr() and substring() in JavaScript?

In this article, We’ll see what’s the difference between substr and substring in javascript The substr() method extracts parts of a string, beginning at the character at the specified position, and returns the specified number of characters. The substring() method returns the part of the string between the start and end indexes, or to theRead more about Difference between the substr() and substring() in JavaScript?[…]

PHP8 Attributes

PHP8 Attributes

Instead of PHPDoc annotations, you can now use structured metadata with PHP’s native syntax. That’s it!. Please share your thoughts or suggestions in the comments below.

PHP8 Union types

PHP8 Union types

PHP 8 Nullsafe operator Instead of PHPDoc annotations for a combination of types, you can use native union type declarations that are validated at runtime. That’s it!. Please share your thoughts or suggestions in the comments below.

PHP8 Nullsafe operator

PHP8 Nullsafe operator

Instead of null check conditions, you can now use a chain of calls with the new nullsafe operator. When the evaluation of one element in the chain fails, the execution of the entire chain aborts and the entire chain evaluates to null. That’s it!. Please share your thoughts or suggestions in the comments below.

What’s new in PHP 8

What’s new in PHP 8

It contains many new features and optimizations including named arguments, union types, attributes, constructor property promotion, match expression, nullsafe operator, JIT, and improvements in the type system, error handling, and consistency. Here is the list of main new features: Union Types Named Arguments Match Expressions Attributes Constructor Property Promotion Nullsafe Operator Weak Maps Just InRead more about What’s new in PHP 8[…]