Get first element of an array PHP

Posted . Visible to the public.

array_shift(array_values($array));

answered Sep 22 '10 at 16:04

blueyed

Profile picture of Alexandru Catalin Trandafir
Alexandru Catalin Trandafir
Posted by Alexandru Catalin Trandafir to Alexandru Catalin Trandafir's deck (2013-03-20 10:26)