array_splice_reverse

The Gravity PDF array splice reverse function.

Description

array_splice_reverse( &$arr, $offset, $length ); 

Parameters (3)

0. $arr
The arr.
1. $offset
The offset.
2. $length
The length.

Usage

  1. if ( !function_exists( 'array_splice_reverse' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'gravity-pdf/vendor/blueliquiddesigns/mpdf/includes/functions.php'; 
  3.  
  4. // The arr. 
  5. $arr = &$arr; 
  6.  
  7. // The offset. 
  8. $offset = null; 
  9.  
  10. // The length. 
  11. $length = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = array_splice_reverse($arr, $offset, $length); 
  15.  

Defined (1)

The function is defined in the following location(s).

/vendor/blueliquiddesigns/mpdf/includes/functions.php  
  1. function array_splice_reverse(&$arr, $offset, $length) { 
  2. $tmp = (array_reverse(array_slice($arr, $offset, $length))); 
  3. array_splice($arr, $offset, $length, $tmp);