According to :
i want php timestamp in this format
Saturday, August 18, 2018 10:55:34 AM GMT+05:30
you can format your timestamp as this:
date('l ,F d, Y h:i:s A \G\M\T P');
you also said :
i am trying to make php timestamp function
First ,i don't see any function declaration nor return statement so you didn't try to make a function.However according to the format above and the fact that you want a custom timestamp function, you can build it this way:
function custom_timestamp(){
return date('l,F d,Y h:i:s A \G\M\T P');
}
Then you can use it anywhere as timestamp and based on your own logic.