Development on the Pinkary project has been quite inactive lately, but it still gets 500+ clones and 1,000+ views every 14 days.

55

PHP 8.6 will introduce a new function: clamp() ⚡️

It ensures a value always stays between a minimum and maximum.

A small addition, but very useful in many situations. 🧰
image

51


PHP Enum and Match expression are readable, reusable, and clean syntax.

<?php

enum Operation
{
case Increment;
case Decrement;
}


$result = match($op) {
Operation::Increment => $value + 1,
Operation::Decrement => $value - 1,
};


#PHP8 #enum #match #phptips

48

📢 PHP×Tokyo Speaker/Talk Announcement

We are pleased to announce the first speaker/talk for the March edition of PHP×Tokyo!

"Working with MCP: The Laravel Way" by Bijaya Prasad Kuikel (X: @sadhakbj)!

RSVP:
tinyurl.com/3kpj8few

image

44