Skip to content

IT Books Reviews and Programming

JavaScript, JAVA, PHP, Android, CSS/HTML

  • Home Page
  • Books Reviews
  • Programming Tips
  • Contact

typing

PHP 8.1 – Extra return type :noreturn

November 11, 2021November 11, 2021 by Administrator
no return sign
no return sign

For any methods or function which are meant to always throw exception or exit the code using things like: exit() or die() a new return type of: noreturn was added. The sample usage could be: function iWillAlwaysExit(): noreturn .

Read morePHP 8.1 – Extra return type :noreturn

Categories PHP, ProgrammingTags php 8.1, typingLeave a comment

PHP 8.1 – New feature array_is_list()

November 11, 2021November 11, 2021 by Administrator
batman slapping for not checking a type of array
batman slapping for not checking a type of array

Added a new check to array to see if it contains only an int based keys in natural order (from 0 to n`). Useful when we want to ensure the array is consistent (untouched) and when we want to serialize an array to json to format of [0, 1, 2] instead of object properties.

Read morePHP 8.1 – New feature array_is_list()

Categories PHP, ProgrammingTags array, php 8.1, typingLeave a comment

Recent Posts

  • Solved: Unity freezing when building First Scene for Android build

    Solved: Unity freezing when building First Scene for Android build

    November 26, 2023
  • PHP 8.1 – Read-only class properties

    PHP 8.1 – Read-only class properties

    November 14, 2021
  • PHP 8.1 – Callable syntax

    PHP 8.1 – Callable syntax

    November 14, 2021
  • PHP 8.1 – Default parameters with “new” keyword

    PHP 8.1 – Default parameters with “new” keyword

    November 14, 2021
  • PHP 8.1 – New setAccessible() Reflection method

    PHP 8.1 – New setAccessible() Reflection method

    November 13, 2021

Archives

  • November 2023 (1)
  • November 2021 (24)
  • October 2021 (2)
  • December 2020 (1)
  • September 2020 (1)
  • May 2020 (1)
  • March 2020 (1)
  • November 2019 (1)
  • October 2019 (1)
  • September 2019 (1)
  • August 2019 (1)
  • July 2019 (1)
  • April 2019 (1)
  • March 2019 (1)
  • January 2019 (1)
  • December 2018 (2)
  • November 2018 (4)

Facebook Fanpage

facebook it books reviews, java, android, php, sql

IT Books Reviews and Programming Fanpage

Categories

  • Books Reviews
  • laminas
  • PHP
  • Programming
  • Unity
November 2023
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
27282930  
« Nov    
© 2023 IT Books Reviews and Programming • blog.Omelak.com