Click here to Skip to main content
15,614,270 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
QuestionI need an ebay program Pin
totolcm13-Jan-10 2:22
totolcm13-Jan-10 2:22 
Questionimap_search problem Pin
nathionice11-Jan-10 22:46
nathionice11-Jan-10 22:46 
AnswerRe: imap_search problem Pin
Niall Barr12-Jan-10 3:08
professionalNiall Barr12-Jan-10 3:08 
GeneralRe: imap_search problem Pin
nathionice12-Jan-10 4:05
nathionice12-Jan-10 4:05 
GeneralRe: imap_search problem Pin
Niall Barr12-Jan-10 4:44
professionalNiall Barr12-Jan-10 4:44 
GeneralRe: imap_search problem Pin
nathionice12-Jan-10 6:20
nathionice12-Jan-10 6:20 
GeneralRe: imap_search problem Pin
Niall Barr12-Jan-10 22:38
professionalNiall Barr12-Jan-10 22:38 
AnswerRe: imap_search problem Pin
elizas19-Jan-10 0:53
elizas19-Jan-10 0:53 
GeneralReply: Pin
sarahcolin119-Jan-10 19:57
sarahcolin119-Jan-10 19:57 
GeneralRe: Reply: Pin
elizas19-Jan-10 20:02
elizas19-Jan-10 20:02 
GeneralRe: Reply: Pin
Mari Jenkins9-Feb-10 4:11
Mari Jenkins9-Feb-10 4:11 
GeneralRe: imap_search problem Pin
Mari Jenkins30-Jan-10 6:47
Mari Jenkins30-Jan-10 6:47 
GeneralRe: imap_search problem Pin
elizas31-Jan-10 18:56
elizas31-Jan-10 18:56 
GeneralRe: imap_search problem Pin
Mari Jenkins9-Feb-10 4:14
Mari Jenkins9-Feb-10 4:14 
QuestionSwitching to Linux OS Pin
Vaclav_11-Jan-10 7:51
Vaclav_11-Jan-10 7:51 
AnswerRe: Switching to Linux OS Pin
LloydA11114-Jan-10 8:48
LloydA11114-Jan-10 8:48 
QuestionMail () function friving me crazy with the errors :@ Pin
SRJ9210-Jan-10 5:51
SRJ9210-Jan-10 5:51 
AnswerRe: Mail () function friving me crazy with the errors :@ Pin
Adam Maras10-Jan-10 8:36
Adam Maras10-Jan-10 8:36 
GeneralRe: Mail () function friving me crazy with the errors :@ Pin
SRJ9210-Jan-10 8:40
SRJ9210-Jan-10 8:40 
GeneralRe: Mail () function friving me crazy with the errors :@ Pin
fly90410-Jan-10 11:29
fly90410-Jan-10 11:29 
GeneralRe: Mail () function friving me crazy with the errors :@ Pin
SRJ9210-Jan-10 11:41
SRJ9210-Jan-10 11:41 
QuestionProblem with Arrays in PHP Pin
sarang_k5-Jan-10 22:30
sarang_k5-Jan-10 22:30 
AnswerRe: Problem with Arrays in PHP Pin
cjoki7-Jan-10 5:35
cjoki7-Jan-10 5:35 
GeneralRe: Problem with Arrays in PHP Pin
David192216-Jan-10 12:31
David192216-Jan-10 12:31 
GeneralRe: Problem with Arrays in PHP Pin
fly90416-Jan-10 13:15
fly90416-Jan-10 13:15 
David1922 wrote:
Do both work the same?


Technically yes, they do work the same, but the second method is very bad practice. It dosen't serve any purpose, it just wastes processing time as the string has to be compiled to check for variables (which happens to all strings surrounded by double quotes ["]), rather than just having the variable put directly in i.e. the first method.

You should only use quotes in array braces if you have an associative key such as $array['key'];.
Or:
$key = 'key';
echo $array[ $key ];

Hope that helps.

If at first you don't succeed, you're not Chuck Norris.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.