Published in


Find specific item on an array in Javascript and PHP

Find an item without using loops in array

Hello Friends,

I am Shani, and we are going to discuss today's topic “How to find and specific item on an array without loops in javascript and PHP.”

Original Post on infinitbility platform

JS and Php

Let’s begins with Javascript


Javascript provides indexOf function to find value from an array

Understand with an example


Similarly, Php provides in_array function to find value from an array

Understand with an example

If you want to say thank you then please follow my publication and subscribe newsletter…




We have the ability to build infinite way for us. follow us for new way…

Recommended from Medium

UI for Kafka part 2 (with LDAP/

Introduction to Graph Data Structure

Graph Data Structure

Kichain Challenge. Cross-chain transactions between KiChain and UMEE Testnets — RELAYER

Go vs C#, part 1: Goroutines vs Async-Await

What is my developer going on about? — A techie talk glossary.

My journey becoming a Unity game developer: 2.5D Infinite Runner-Ledge Grab System-Pt2

A data structure is a systematic way of collecting and organizing data in order to use it…

Deploying the ELK stack on Amazon ECS, Part 2: EC2 Container Service (ECS)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


Subscribe my newsletter to get weekly updates. —

More from Medium

PHP vs JavaScript: The Best Language For Your Project

Decoupling frontend and backend development — The easy way!

Javascript vs PHP: Meaning, Pros, Cons, & Difference

Optimized way to save the sort order Into DB using “SortableJs, Vue draggable next or react-dnd…

Todo list with two drag area and sortable item