本文整理汇总了PHP中array_preg_replace函数的典型用法代码示例。如果您正苦于以下问题:PHP array_preg_replace函数的具体用法?PHP array_preg_replace怎么用?PHP array_preg_replace使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了array_preg_replace函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: humanmedia
function humanmedia($media)
{
global $rewrite_iftype;
array_preg_replace($rewrite_iftype, $media);
return $media;
}
示例2: fixiftype
function fixiftype($type)
{
global $rewrite_iftype;
$type = array_preg_replace($rewrite_iftype, $type);
return $type;
}
示例3: rewrite_ifname
function rewrite_ifname($inf, $htmlentities = TRUE)
{
//$inf = strtolower($inf); // ew. -tom
$inf = array_str_replace($GLOBALS['rewrite_ifname'], $inf);
$inf = array_preg_replace($GLOBALS['rewrite_ifname_regexp'], $inf);
if ($htmlentities) {
$inf = htmlentities($inf);
}
// By default use htmlentities
return $inf;
}
示例4: rewrite_ios_features
function rewrite_ios_features($features)
{
global $rewrite_ios_features;
$type = array_preg_replace($rewrite_ios_features, $features);
return $features;
}
示例5: rewrite_ifname
function rewrite_ifname($inf)
{
//$inf = strtolower($inf); // ew. -tom
$inf = array_str_replace($GLOBALS['rewrite_ifname'], $inf);
$inf = array_preg_replace($GLOBALS['rewrite_ifname_regexp'], $inf);
return ucfirst($inf);
}