Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 04:52 am EST

Geeklog Forums

define() vs. $LANG_PL00 = array() -- wats the diff?


Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
I am currently writing a language file for a plugin as I go and was wondering what the difference is between define() and $LANG_PL00 = array()...

I've seen examples where both are used, but I can't tell why or what the diff may be.
 Quote

Status: offline

Euan

Forum User
Full Member
Registered: 04/22/02
Posts: 292
Not 100% sure, but I thought that define() only worked with constants, not arrays...

Cheers,

Euan.
-- Heather Engineering
-- No job too small
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
yes, but why not just put all the variables into the array rather than defining constants, or visa versa. I just cant seem to rap my head around the significance of one over the other as far as the language file is concerned.

off i go to study the manual somemore.
 Quote

All times are EST. The time is now 04:52 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content