- var_dump: documentation ( source)
- preg_match: documentation ( source)
<?php
var_dump(preg_match(
'^Client returns an error \(number 10061\): No connection could be made because the target machine actively refused it\.\n while trying to join tcp:\/\/127\.0\.0\.1:655355\.$',
'Client returns an error (number 10061): No connection could be made because the target machine actively refused it.
while trying to join tcp://127.0.0.1:655355.'
));