0

I'm learning PHP, anybody help me to convert this code into php 5.5 version, many thanks ! I don't know how to replace function preg_replace by preg_replace_callback. Sorry for my bad English !

$_SERVER['SERVER_NAME'] = preg_replace( array('/^[a-zA-Z]+\:\/\//e'), '', $this->get_Env( array('SERVER_NAME', 'HTTP_HOST') ) );
chris85
  • 23,591
  • 7
  • 30
  • 47

0 Answers0