Folks,
On my tests, these two were different. Can you confirm ?
1
[code]
$arr = array(“male”=>”NogDog”,”male”=>”Sempervivum”)
2
[code]
$arr = array(“male=>NogDog”,”male=>Sempervivum”)
In my test, the last one seem not to take into account the key since the “=>” is inside the quotes.
This one is way too wrong ? Right ?
Mistakenly I wrote it like that and then came to my sense somehow what I am doing wrong.
Array that has no key and just the value. What do you call them ? Just Index arrays ?
Anyway, reading upon dimensional arrays at w3schools.com.
Can you believe it, I still haven’t learnt about all array types and have already built membership PHP scripts (Login, Logout, Register, Google like SERP (pagination)).
Learnt $_SESSIONS, $_GET, $_REQUEST, $
But still consider myself a long time 4/5yrs beginner selfstudy student as I still haven’t fully got into Oop or even pdo which I consider intermediate level PHP.
Amazing hey ? Still a beginner level and yet managed to build my own membership site and Yahoo like Index. Gonna jump into building a web messenger like Watsup. Only thing I can’t program is voIP free video conferencing, video calling and the like. Gonna add my own unique features that Watsup doesn’t have. Added my own unique features on my SE that Google doesn’t have. Gonna add unique features on my Forum PHP too. I only build things if I comeup with my own unique features to standout from the crowd.
Once you people answer my other latest threads, I’d finish building my Google type bot and turn the online index into a Searchengine. Gonna build my own forum too and all with procedural style beginner level PHP. Yes, yes, adding dB security. Prepared Statements.So don’t worry about becoming SQL injection target at beginner level. Lol!
Try answering my other threads. Especially ones that deal with data extraction or manipulation.
I knew once I have learnt the basics of data dumping and extracting to/fro MySql dB (Insert, Delete, Update, Select) then I’d be able to build websites. Social Networks, Forums, etc.
Hence jumped straight into MySql whilst a beginner level student. Prep Stmts.
Next need to complete learning Mobile Friendly pages. CSS, I not caring too much. As building fancy pages ain’t that much of my target. That can come later. Right now, need to learn about data manipulation and array is my thing. Got to finish the array subject properly.