כמה דברים שימושיים בשפת ה - PHP

  • str_pad. That function is useful to pad your string. If a string is shorter than a specified length, then all the left space will be filled by some padding string.
  • Managing sessions. One of the best libraries for session managing is the DB_eSession library which saves the session data in a database and provides some good tools to manage user access.
  • extract. To extract array keywords as variable names use that function. It adds new variables to the symbols table, and you can influence that process with sever defines.. Be careful when using EXTR_PREFIX_ALL, since it tells extract to add the prefix x_ in when calling it like this: extract($params, EXTR_PREFIX_ALL,"x");

Post a Comment

Previous Post Next Post