New line does not display when getting jira issue using php soap -



New line does not display when getting jira issue using php soap -

i trying issue details jira 3.13 using php soap. able login , issues; however, on 1 of field, not new line formatting. so, got text particular field without new line character (everything append single line of text). of now, guessing php did re-formatting of string soap. reason saying because did testing soap ui , able text out formatting. can help me out way displaying text formatting? in advance.

this php code:

try { $soap = new soapclient("<<jira url>>"); $auth = $soap->login($formusername, $formpassword); if ($auth) { $result0 = $soap->getissue($auth,'<<jira issue id>>'); $result = (array) $result0; foreach ($result $key => $a) { $z = $z . '<br/>' . $key . ' = ' . $a; } echo $z; } } catch(exception $e){ $string = urlencode($e->getmessage()); header("location: login.php?message=".$string); die(); }

i realize not need convert array. following:

foreach ($result0 $key => $a) { $z = $z . '<br/>' . $key . ' = ' . $a; }

this, however, still not solve problem new line.

isn't because don't alter linefeeds <br/> before outputting it?

should easy find out if that's case looking @ source in browser.

php soap jira

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -