• PHP Video Tutorials

PHP - Ds\Queue::copy() Function



Ds\Queue::copy() function can return the shallow copy of a queue.

Syntax

public Ds\Queue Ds\Queue::copy( void )

Ds\Queue::copy() function doesn't have any parameters.

Example

<?php  
   $queue = new \Ds\Queue();  
   $queue->push("Tutorials"); 
   $queue->push("Point"); 
   $queue->push("India"); 
  
   print_r($queue->copy()); 
?>
php_function_reference.htm
Advertisements