alright im having bit of trouble here...
i have 2 files english.lang and grab-template.php
I want to load english.lang and create an array out of it in get-template.php so I can then do a replace.
english.lang
grab-template.phpCode:'UPLOAD' => 'Upload Files', 'MANAGE' => 'Manage Files', 'SHARE' => 'Share Files'
whats happening is that it grabs the information successfully but then it thinks the file_get_contents is one entire string which it is making and then sends it to the array so there is one thing in the arrayCode:$words_arr = array(file_get_contents('language/english.lang')); print_r($words_arr);
$words_arr[0]
and when you echo that it displays
when I would actually wantCode:Array ( [0] => 'UPLOAD' => 'Upload Files', 'MANAGE' => 'Manage Files', 'SHARE' => 'Share Files' )
Code:Array ( [UPLOAD] => Upload Files [MANAGE] => MANAGE [SHARE] => Share Files)




Reply With Quote