ap_to_dot_notation( boolean|string $path = false )

Description #

Convert array notation (string, not real array) to dot notation.

Parameters #

  • $path
    boolean | string (Optional) Path name. Default value: false

Source #

File: includes/functions.php

function ap_to_dot_notation( $path = false ) {
	$parsed = rtrim( str_replace( '..', '.', str_replace( array( ']', '[' ), '.', $path ) ), '.' );
	return $parsed;
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment