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

Linux, Apache, MySQL, PHP

 
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.

QuestionProblem with check boxes Pin
sarang_k5-Jan-10 19:57
sarang_k5-Jan-10 19:57 
AnswerRe: Problem with check boxes Pin
cjoki7-Jan-10 5:25
cjoki7-Jan-10 5:25 
QuestionPHP Member Pages... Need major help... Pin
thebiostyle1-Jan-10 7:46
thebiostyle1-Jan-10 7:46 
AnswerRe: PHP Member Pages... Need major help... Pin
Smithers-Jones1-Jan-10 11:09
Smithers-Jones1-Jan-10 11:09 
AnswerRe: PHP Member Pages... Need major help... [modified] Pin
enhzflep1-Jan-10 11:25
enhzflep1-Jan-10 11:25 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle1-Jan-10 16:14
thebiostyle1-Jan-10 16:14 
GeneralRe: PHP Member Pages... Need major help... Pin
enhzflep3-Jan-10 15:54
enhzflep3-Jan-10 15:54 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle3-Jan-10 16:28
thebiostyle3-Jan-10 16:28 
GeneralRe: PHP Member Pages... Need major help... Pin
enhzflep4-Jan-10 12:22
enhzflep4-Jan-10 12:22 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle22-Jan-10 16:09
thebiostyle22-Jan-10 16:09 
GeneralRe: PHP Member Pages... Need major help... Pin
Graham Breach22-Jan-10 23:31
Graham Breach22-Jan-10 23:31 
GeneralRe: PHP Member Pages... Need major help... [modified] Pin
thebiostyle23-Jan-10 4:33
thebiostyle23-Jan-10 4:33 
AnswerRe: PHP Member Pages... Need major help... Pin
Graham Breach23-Jan-10 5:20
Graham Breach23-Jan-10 5:20 
QuestionRe: PHP Member Pages... Need major help... Pin
thebiostyle23-Jan-10 8:51
thebiostyle23-Jan-10 8:51 
AnswerRe: PHP Member Pages... Need major help... Pin
fly90423-Jan-10 9:33
fly90423-Jan-10 9:33 
NewsRe: PHP Member Pages... Need major help... [modified] Pin
thebiostyle23-Jan-10 9:51
thebiostyle23-Jan-10 9:51 
GeneralRe: PHP Member Pages... Need major help... Pin
fly90423-Jan-10 10:38
fly90423-Jan-10 10:38 

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.