• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Creating params array?

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
3 posts • Page 1 of 1

Postby bcc » Fri Oct 06, 2006 5:47 am

Do we need to do

$params = array();

in the index file, right after

require_once dirname(__FILE__)."/src/phpfreechat.class.php";

or do we just assign the values?
bcc
Member
 
Posts: 54
Joined: Wed Mar 08, 2006 4:09 am
Top

Postby phpfreechat » Fri Oct 06, 2006 10:10 am

Yes, it's better to initialize the array:
1. it will speadup the code.
2. you are sure the $params array is empty before starting assignations.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby bcc » Fri Oct 06, 2006 10:54 am

OK, thanks. It wasn't in the examples, so I weren't sure what's the correct way.
bcc
Member
 
Posts: 54
Joined: Wed Mar 08, 2006 4:09 am
Top


Post a reply
3 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 18 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub