Replacing string with a variable in php

I have following code in my plugin of WordPress: wp_localize_script(‘ffd_js_script’, ‘myAjax’, array( ‘ajaxurl’ => admin_url(‘admin-ajax.php’), ‘idinfo’ => $myoptionValue[idinfo], ‘index1’ => $myoptionValue[id1], ‘index2’ => … Read more