Reading and writing classes to a file in php
Posted: Thu Jun 02, 2011 10:46 am
hi, i have searched every where but could not get how to write or read objects of class or stucture in file through php. for ex. if i had structure like this in c++, then we can easily write it into a file through file.write() function. Is there anyway to do the same in php??
Code: Select all
str student { int roll;char name[50]; }