@ 2015-10-13T16:26:14Z <?php
$line = "9938275IBUPROFENIX 400 mg comp.x 10 00000594NNPhoenix 00000062220110810001001803827517791848330116001010NNN00";
$str = trim(trim(substr($line, 7, 44)) . ' ' . trim(substr($line, 51, 24)));
$changes = array(
'E1' => 'B',
'A7' => 'º',
'A5' => 'Ñ',
'A4' => 'ñ',
'A3' => 'ú',
'A2' => 'ó',
'A1' => 'í',
'82' => 'é',
'A0' => 'á',
'9A' => 'U',
);
foreach ($changes as $key => $value){
$str = $this->doFix($str, $key, $value);
}
$str = str_replace(',', ', ', $str);
$str = str_replace('+', ' + ', $str);
$str = str_replace('¥', 'Ñ', $str);
$str = str_replace('š', 'U', $str);
$str = ucfirst(trim($str));
$str = preg_replace('/\s+/', ' ', $str);
$brand = trim(substr($line, 7, 44));
echo $str . '----';
echo $brand . '----';
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.0.0 - 7.0.20 , 7.1.0 - 7.1.20 , 7.2.0 - 7.2.33 , 7.3.16 - 7.3.33 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.6 Fatal error: Uncaught Error: Using $this when not in object context in /in/hs0OP:20
Stack trace:
#0 {main}
thrown in /in/hs0OP on line 20
Process exited with code 255 . Output for 5.4.1 - 5.4.45 , 5.5.24 - 5.5.35 , 5.6.8 - 5.6.28 Fatal error: Using $this when not in object context in /in/hs0OP on line 20
Process exited with code 255 . preferences:dark mode live preview
197.37 ms | 402 KiB | 227 Q