bestbuildpc: Forums
 

 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Deprecated: The each() function is deprecated
 
 
Post new topic   Reply to topic    bestbuildpc Forum Index -> RavenNuke -> Errors and Bugs
View previous topic :: View next topic  
Author Message
bestbuildpc
Site Admin
Site Admin


Joined: Jun 30, 2012
Posts: 213
Location: NL

PostPosted: Sun Apr 30, 2023 12:16    Post subject: Deprecated: The each() function is deprecated Reply with quote

Code:
, htmlspecialchars($cidinfo['cdescription'], ENT_QUOTES, _CHARSET) , '</textarea><br>' , _DL_ALLOWED_HTML , '<br>';

while (list($key) = each($AllowableHTML)) echo ' &lt;' , $key , '&gt;';


Replace with

Code:
foreach($AllowableHTML as $key => $value){


     echo "$key"; //This displays the index of the element in the array
     echo "&lt;". $value. "&gt;"; //This displays the value
}
  
Back to top
View user's profile Send private message Visit poster's website
bestbuildpc
Site Admin
Site Admin


Joined: Jun 30, 2012
Posts: 213
Location: NL

PostPosted: Tue May 09, 2023 21:48    Post subject: Reply with quote

Deprecated

Code:
while ( list($displayname, $filename) = each($lang) ) {


Replace with

Code:
foreach($lang as $displayname => $filename) {
  
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    bestbuildpc Forum Index -> RavenNuke -> Errors and Bugs All times are GMT + 2 Hours
 
 Page 1 of 1

 

Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001-2008 phpBB Group
 
Forums ©