SSilence / php-imap-client

a easy solution for simple IMAP email access in php
MIT License
268 stars 136 forks source link

When I'm trying to Get all folders as array of strings its showing error #201

Closed deepak458 closed 6 years ago

deepak458 commented 6 years ago

I'm Using Code as you Say Like $folders = $imap->getFolders(); foreach($folders as $folder) { echo $folder; }

But It's Showing Error Like

Notice: Array to string conversion in C:\xampp\htdocs\ats\mail-2\mail-4\inbox.php on line 26 Array

cleitongarcia commented 6 years ago
        $folders = $imap->getFolders();

        foreach($folders as $key => $value) {
            echo $key . '</br>';
        }
cleitongarcia commented 6 years ago

This not is a issue!

mattparksjr commented 6 years ago

Yep. Just invalid PHP syntax.