PHP 7.4 – Numeric Literal Separator

/ By Arjun / Published on January 4, 2020

PHP 7.4 allows for underscores to be used to visually separate numeric values. It looks like this:

The underscores are simply ignored by the engine. i.e both are equal.

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x