lundi 27 août 2018

How to remove Key Without using Foreach laravel

$bloklistArray = BlockList::select('phone_number')->get();

Output

 [{"phone_number":"1234567890"},{"phone_number":"1234567891"},{"phone_number":"1234567930"}]

Expected Output

['1234567890','1234567891']

I have lot of Datas in Block list so How to get The Values without key And without using foreach



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire