below code gives me fatal error in php 7
$jquery_click_hook = ereg_replace("[^A-Za-z0-9]", "", strtolower($value['name']));
is there any way to make it compatible with php 7?
Go to preg_replace Documents and update the expression to use the preg syntax (PCRE) instead of the ereg (POSIX) syntax where there are Docs differences (same as the manual for Documents says ). ereg_replace
preg_replace
ereg_replace
Your above code should be like this:
$jquery_click_hook = preg_replace("[^A-Za-z0-9]", "", strtolower($value['name']));
ereg_replace DEPRECATED PHP 5.3.0 PHP 7.0.0. , preg_replace() ereg_replace()
Source: https://habr.com/ru/post/1654452/More articles:angular2 use a component of a nested imported module - angularReturning an array of string tables from C to LuaJIT via FFI - luaExpression in select in LINQ to SQL - c #Kotlin: Passing an operator as a parameter to a function - kotlinDisable Spring Configuration if one of several profiles is present - springFast generalized existences - genericsHow to execute spring-boot: run from a terminal for remote debugging - javaСуществует ли какая-либо версия `INotifyPropertyChanged` для нескольких изменений? - c#Rewrite the symbolic expression in terms of a specific subexpression - matlabError cannot find module 'umask' - node.jsAll Articles