Using $loop in foreach, you can get an idea about the entry.
For First
Instead of doing : array_key_first($array) Direct Use : $loop->first
For Last
Instead of doing : array_key_last($array) Direct Use : $loop->last
Using $loop in foreach, you can get an idea about the entry.
Instead of doing : array_key_first($array) Direct Use : $loop->first
Instead of doing : array_key_last($array) Direct Use : $loop->last
CTO & Founder | DevOps | Web Architect | Full Stack | PHP, Laravel, Codeigniter, MySQL, PostgreSQL, SQL, Docker, Kubernetes, AWS, GCS, Azure, NodeJS, Socket, CICD