0

Is there anyway to overwrite php's _($msgid) function ?? i see that function located in php core gettext.php

i'm using php7

i have tried to

function _($msg)
{   
    echo $msg;
}

geting error

Cannot redeclare _()

Screenshot for gettext.php from eclipse

enter image description here

Armen
  • 4,064
  • 2
  • 23
  • 40
  • 2
    *php core **gettext.php*** ? – Hanky Panky Jun 23 '17 at 06:15
  • https://serverfault.com/questions/140584/how-to-remove-the-php-gettext-extension – Phil Jun 23 '17 at 06:23
  • @HankyPanky i updated my question with screenshot. Im using Eclispe and when i control click on _( it reffers me to that file i understood it as it is some core php file – Armen Jun 23 '17 at 06:37
  • @Phil you mean only the way is disable php's gettext module and then write my on functions instead yes ? – Armen Jun 23 '17 at 06:39

0 Answers0