I am trying to initialize a CI function in my own code.
$cipher->initialize( [ 'driver'=>'openssl', 'key' => $key ] );
I get an error. Error parsing: syntax error, unexpected '['
May I ask how to fix this?
Using Php 5.3.3
You are using PHP 5.3. Array initialization construct: []will not work. Use this approach instead:
[]
<?php $cipher->initialize( array( 'driver'=>'openssl', 'key' => $key ) );
Your version of PHP does not support []instead array().
array()
[], :
Source: https://habr.com/ru/post/1660894/More articles:Read non-fixed isolation level on transaction insert / update - phpLinspace limitations for Python from two arrays - pythonRewriting paths in CSS and JS via nginx sub_filter - nginxsearch for a specific process name in htop - htopAndroid ListView with radio button - androidHow to prevent manual scrolling of a page in SwipeView - qtTreeTableColumn.visible: the bound value cannot be set - javaIs it possible to control the alignment of the Rust structure on a stable compiler? - memory-alignmentTinymce editor separates all styles, but saves bullets and tables when inserting text - javascriptA-frame: how to set up wall colliders - aframeAll Articles