wp_clone

Definition:
function wp_clone( $object ) {}

Copy an object.

Parameters

  • object $object: The object to clone

Return values

returns:cloned object

Source code

function wp_clone( $object ) {

	// Use parens for clone to accommodate PHP 4.  See #17880

	return clone( $object );

}

3479

No comments yet... Be the first to leave a reply!

Leave a comment