Answer the question
In order to leave comments, you need to log in
How to split information into lines in php?
"тел.: 044 451 75 18тел./факс: 044 451 89 18e-mail: [email protected]сайт: http://emkosti.kiev.ua, http://giroulovitel.com.ua/"
Answer the question
In order to leave comments, you need to log in
You can try regular expressions.
For example, pull out the phone like this
$matches = new Array();
preg_match( '#тел\.\:\s*([\d\s]+)#ui', $str, $matches );
The $matches[1] element will be equal to '044 451 75 18'$matches = new Array();
preg_match( '#e\-mail\:\s*([\w\-\.\@]+)#ui', $str, $matches );
The $matches[1] element will be equal to '[email protected]'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question