$timestamp = createTimestamp(); echo $timestamp; // output: 1602747632In this example, we use createTimestamp() to get the current timestamp in seconds since the Unix epoch and store it in a variable. We then print the timestamp to the output. Package library: This utility function is a core PHP function and does not require any additional library or package.