HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/martyknows.com/wp-content/themes/p2/inc/compat.php
<?php
/**
 * Enable P2 to be compatible with prior versions of WordPress and PHP.
 *
 * @package P2
 */

if ( !function_exists( 'str_split' )):
function str_split($string,$string_length=1) {
	if (strlen($string)>$string_length || !$string_length) {
		do {
			$c = strlen($string);
			$parts[] = substr($string,0,$string_length);
			$string = substr($string,$string_length);
		} while($string !== false);
	} else {
		$parts    = array($string);
	}
	return $parts;
}
endif;

if ( !function_exists( 'str_ireplace' ) ) {
	function str_ireplace($name, $values, $replacement) {
		return str_replace($name, $values, $replacement);
	}
}

?>