fork download
  1.  
  2. <?php
  3. $cod = '192.168.0.0';
  4. $char = '300';
  5. $arrayFind = array('[cod]', '[char]');
  6. $arrayReplace = array($cod, $char);
  7. echo str_replace($arrayFind, $arrayReplace, '[cod]/[char]');
Success #stdin #stdout 0.03s 52480KB
stdin
Standard input is empty
stdout
192.168.0.0/300