hi this is Raghu from tutorial drive calm and welcome to PHP video series in this lecture we will see an example of numeric arrays so let’s open our editor so inside this let me create a new folder and name it as arrays and let me create a new file inside the folder arrays and save it as numeric dot PHP so this is very simple so let’s start with PHP tag and then dollar array or error equals array off you can have the variable list maybe we will give a values like Java PHP JavaScript angular JS node.js and let’s say and if you want to print all these elements so let’s use foreach loop so the variable would be array and that key we can use anything we can simply use something like a value and we will just print so the language please so here we can give the element that is dollar when you let them just use semicolon so let’s say open the browser so it is not in the loops using arrays then numeric okay let’s add some break statement this break is the HTML code so the languages Java PHP TS and it is no Dias so let me do something you just testing we got the value also it means here we can use strings and numbers you can have all types of values in the array so this is a numeric array so why we are calling it as numeric arrays so with this example the term numeric it doesn’t you know justify so let me do the same thing with simple for loop but for each just for you okay I equals 0 I less than or equals size of count new line and I’ll just print the value so dot dollar array of dollar you save so if you see we are getting the output so here we are using that indices are index values as 0 and then it will increment to 1 similarly till the size is 1 2 3 4 5 and once it is 5 then the condition will be false then it will come out of the loop so this is called a numeric type of arrays


Google Plus

Apache Zookeeper Tutorial

Apache Kafka Tutorial

Apache Kafka Security

Elasticserarch n Kibana

Java 8 Tutorial

Log4J Tutorial

Apache Storm Tutorial

SQLite Tutorial

Apache Ant Tutorial

Related Posts


Apache Kafka Commands Cheat sheet

Spread the loveKafka Topics List existing topics bin/kafka-topics.sh –zookeeper localhost:2181 –list Purge a topic bin/kafka-topics.sh –zookeeper localhost:2181 –alter –topic mytopic –config retention.ms=1000 … wait a minute … bin/kafka-topics.sh –zookeeper localhost:2181 –alter –topic mytopic –delete-config retention.ms
Read more…


What is Apache Maven | Apache Maven complete tutorial from scratch pdf

Spread the love In this post you will learn the complete tutorial of Apache Maven build tool What is Maven ? Apache Maven is a software project management and comprehension tool. Based on the concept
Read more…


Practical Guide for Web Development in 2018

Spread the loveWelcome to my practical guide  for web development in 2018 in terms of  technology and career. Before we start I just want to  mention a few things, you don’t need to learn  everything that
Read more…