You can just do this:

echo $memus[0]['name'];

Or if you want all of them

foreach ($memus as $memu) {
       echo $memu['name'];
}
Answer from Laurence on Stack Overflow
Discussions

php - laravel get value from array of controllers - Stack Overflow
Copyforeach (Route::getRoutes() ... if (array_key_exists('controller', $action)) { $controllers[] = $action['controller']; } } return view('permission.create')->withControllers($controllers); ... Copy{!! Form::select('class_name[]', $controllers, null, ['class' => 'form-control', 'multiple']) !!} here in controller, it put the name of all controllers in $controller and send it to the blade but when i select some of them, the request gives me their keys instead of value... More on stackoverflow.com
🌐 stackoverflow.com
laravel - Get data from array in Controller - Stack Overflow
Communities for your favorite technologies. Explore all Collectives · Ask questions, find answers and collaborate at work with Stack Overflow for Teams More on stackoverflow.com
🌐 stackoverflow.com
How to send array data as a parameter for get value in Laravel controller? - Stack Overflow
Communities for your favorite technologies. Explore all Collectives · Ask questions, find answers and collaborate at work with Stack Overflow for Teams More on stackoverflow.com
🌐 stackoverflow.com
How to extract a specific element value from an array in laravel controller - Stack Overflow
Now I want to extract IncomeTo from this array into a variable in this controller for validations. I tried using the following ways ... I am keep on getting the following error in laravel8. "message": "Undefined array key 0", "exception": "ErrorException", How can I extract the value (500000.00) ... More on stackoverflow.com
🌐 stackoverflow.com
🌐
Laravel.io
laravel.io › forum › 01-22-2016-how-to-pass-array-variable-from-controller-to-view-laravel-5
How to pass array variable from controller to view (Laravel 5)? | Laravel.io
@foreach($hotels as $hotel) @foreach($hotel as $instance) {{ $instance['HotelNo'] }} {{ $instance['HotelName'] }} {{ $instance['RmGrade'] }} {{ $instance['RmGradeCode'] }} @endforeach @endforeach ... return view('frontend.hotel.main_list_hotel',[ ...
🌐
Stack Overflow
stackoverflow.com › questions › 40712667 › laravel-get-value-from-array-of-controllers › 40715961
php - laravel get value from array of controllers - Stack Overflow
use this code instead Forms::Select or create your custom List with Laravel built-in List Function : Copy<select name="class_name[]" multiple> @foreach($controllers as $class) <option value="{{$class}}" >{{$class}}</option> @endforeach </select> ... ...
🌐
Laravel
laravel.com › docs › 4.2 › helpers
Helper Functions | Laravel 4.2 - The clean stack for Artisans and agents
Want something like array_get but for objects instead? Use object_get. The array_only method will return only the specified key / value pairs from the array.
Find elsewhere
🌐
Stack Overflow
stackoverflow.com › questions › 70764900 › how-to-extract-a-specific-element-value-from-an-array-in-laravel-controller
How to extract a specific element value from an array in laravel controller - Stack Overflow
I do have the following output in the form of an array $fetchSubFormDetailData = $this->PMSDS11FetchSubFormDetailTrait($request); echo 'Data Submitted' ; print_r($fetchSubFormDetailData); The r...
🌐
Stillat
stillat.com › blog › 2018 › 04 › 11 › laravel-5-conditionally-retrieving-array-values-with-where
Laravel 5: Conditionally Retrieving Array Values With where » Stillat
The where helper method in Laravel is used to filter an array based on a callback function. It iterates over each element in the array and executes the callback on each key-value pair.
🌐
Medium
laravelamit.medium.com › how-do-i-get-user-data-in-array-in-laravel-cf202a5bb79f
How do I get User data in Array in Laravel - Amit Kumar Thakur - Medium
September 14, 2021 - How do I get User data in Array in Laravel In this tutorial im going to learn how to get all user data in array. First to create Controller php artisan make:controller Youtube Next to create Route go …
🌐
Developerload
developerload.com › how-to-get-value-from-array-in-laravel
[SOLVED] how to get value from array in laravel - DeveloperLoad
You can use collections in laravel 5 · collect($arrayName); $filtered = $arrayName->where('parent', 0); $filtered->all(); Hope this will help. If not please let me know. To get a particular value · {{memus[0]->id}} If you want to access some array's data just do $array_name[index]->key in the ...
🌐
Laravel.io
laravel.io › forum › 12-08-2015-fastest-way-to-search-value-in-array
Fastest way to search value in array. | Laravel.io
<select> @foreach($main_array as $item) @if($item['name'] == $q) <option selected value="{{ $item['url'] }}">{{ $item['name'] }}</option> @else <option value="{{ $item['url'] }}">{{ $item['name'] }}</option> @endif @endforeach </select> Last updated 10 years ago. ... I know that it should be done in the controller and it is. @astroanu your answer is 100% right but my question is, is there any other way to get the value instead of using @foreach?
🌐
DevOpsSchool.com
devopsschool.com › blog › how-to-pass-data-to-views-in-laravel
How to pass data to views in Laravel. -
November 12, 2021 - Now we call array() in which we make a key and assign the value of the key as the variable. After that, we make a page name index.blade.php which is in the view and call our variables in it so that we receive the value from our controller.