Convert hexadecimal color to rgb or rgba in php

Convert hexadecimal color to rgb or rgba in php

Get Array of IDs from Eloquent Collection in Laravel

Get an array of ids from Eloquent collection in Laravel using pluck() and modelKeys() function

What’s New in PHP 7.4

PHP 7.4 is coming with new features, deprecations, and a boost in performance. Find out the new PHP 7.4 features in this guide.

How to find the array index key of multi-dimensional array

array_search() is a built in PHP function that searches the array for a given value and returns the first corresponding key if successful. Syntax array_search ( mixed $needle , array $haystack [, bool $strict = FALSE ] ) : mixed Support: (PHP 4 >= 4.

How to Get Values from Multi-dimensional Arrays with array_column()

array_column() is an inbuilt PHP function which is used to get the values from a single column from the multi-dimensional array or an array of objects.