New question

Question:

Date: 21-06-2022 06:39:57 (In Spanish)

Error en el inicio: Array and string offset access syntax with curly braces is no longer supported[Unresolved]

Hola que tal.
Estoy tratando de iniciar una web de wordpress en mi xampp local pero al momento de intentar iniciar sale este error:
Array and string offset access syntax with curly braces is no longer supported

Al momento de mirar las líneas de código me sale esto pero no se como cambiarlas para que funcionen. agradezco la ayuda:

$init_obj = '';
	foreach ( $tinymce_settings as $key => $value ) {
		if ( is_bool( $value ) ) {
			$val       = $value ? 'true' : 'false';
			$init_obj .= $key . ':' . $val . ',';
			continue;
		} elseif ( ! empty( $value ) && is_string( $value ) && (
			( '{' == $value{0} && '}' == $value{strlen( $value ) - 1} ) ||  /*este es el error*/
			( '[' == $value{0} && ']' == $value{strlen( $value ) - 1} ) ||
			preg_match( '/^\(?function ?\(/', $value ) ) ) {
			$init_obj .= $key . ':' . $value . ',';
			continue;
		}
		$init_obj .= $key . ':"' . $value . '",';
	}

Tags: PHP - PHP Advanced Votes: 0 - Answers: 1 - Views: 6 Share on: Google Facebook Twitter LinkedIn Link
 

Answers:

To actively participate in the community first must authenticate, enter the system.Sign In
 
frjcbbae garagebible.com