from Pretoria live.com and welcome to PHP video series in this lecture we will see associative type of arrays so let’s open the editor and let me save this file as so instead of numeric just keep associating and you can create the new file to insert that is I have the associative PHP okay here so I’ll use the same thing but instead of using something like this I will give name age gender so these are my keys and let me give the values okay and here we can’t use this scope you can use foreach and the variable name is dollar array and the p-value series we can print echo drink the key piece and then we can display the key value that is dollar key dot and again space the value is dot dollar value so that’s all we need let’s open the browser okay I have associated PHP if I open so there is something wrong with line three let me open so okay this is not let’s reload so the key is name and the values tutorial drive the key is age and the values – the key is gender and the values not applicable so this is how we can use the keys and values so this is an example of associative array

Tags:






Youtube
Facebook
Google Plus
Twitter
TutorialDrive


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

blog

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…

blog

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…

blog

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…