I wrote a text message board. Don't try it for the first time... None? Php *** message board class * qq232025079@126.com * 20131117 * classmessage‑publicstatic=file.message.txt; file address *** write ** paramarraydata to save information (can be a two-dimensional array) * publicsta
I wrote a text message board. Don't try it for the first time... None? Php/*** message board class * qq232025079@126.com * 2013/11/17 */class message {public static $ file = '. /message.txt '; // file address/***** write ** param array data to save the information (which can be a two-dimensional array) */public sta
I wrote a text message board. Don't try it for the first time... <无>
$ Val) {if (is_array ($ val) {$ return. = "'{$ key}' => ". self: setArray ($ val);} else {$ return. = "'{$ key}' => '{$ val}'," ;}}$ return = trim ($ return, ','); $ return. = ')'; return $ return ;}$ data = message: get (); // assume that the Retrieved data $ data [] = array ); // Add a message: put ($ data); // The data must be retrieved at one time. Otherwise, the original data will be overwritten.?>