0

I'm using:

$overview = imap_fetch_overview($inbox,$email_number,0);

to get emails and when I print out with print_r I'm getting:

[0] => stdClass Object
    (
        [subject] => FW: CRAFT FAIR
        [from] => Bob Smith 

the problem is the [from] is actually:

        [from] => Bob Smith <bsmith@gmail.com>

how do I get the second part to show up?

JAL
  • 41,701
  • 23
  • 172
  • 300
DCR
  • 14,737
  • 12
  • 52
  • 115
  • Wrap it in a `
    ` tag or `echo htmlspecialchars(print_r($overview, true));`
    – Thakkie Apr 22 '17 at 20:13
  • Hello check if this will bring light in your journey -> http://stackoverflow.com/q/3435293/5452965. I think `[from] => Bob Smith ` is not actually this but you want it to be :) – codtex Apr 22 '17 at 20:16
  • I tried echo '
    ' ; print_r($overview); echo '
    '; but that didn't work. htmlspecialchars gave the full version
    – DCR Apr 22 '17 at 20:26
  • This question has nothing to do with the P programming language, please do not use the [tag:p] tag. – JAL Apr 24 '17 at 17:56

0 Answers0