ask imap_search

Discussion in 'Desain Web dan Programming' started by Azhari, 27 Jan 2015.

Thread Status:
Not open for further replies.
  1. Azhari

    Azhari Beginner 1.0

    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    maaf sebelumnya belum sempat kenalan master
    saya mau tanya master tentang imap search pada php.
    saya ingin cari email dengan imap_search di php dengan keyword tertentu

    $emails = imap_search($inbox,'SUBJECT "Sister's Mobile"');

    nah kata sister's mobile kan ada apostrophe. jadi kode error
    gmana ya biar keyword bisa menggunakan apostrophe (')

    makasih sebelumnya master
     
  2. ceo.ahlul

    ceo.ahlul Expert 1.0 Web Hosting (Company)

    Messages:
    622
    Likes Received:
    255
    Trophy Points:
    63
    Kasih backslash(\) sebelum tanda ' nya.

    Sehingga jadi:

    $emails = imap_search($inbox,'SUBJECT "Sister\'s Mobile"');
     
  3. Azhari

    Azhari Beginner 1.0

    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    mas, hasil pencariannya kok jadi kosong ya mas?
     
Thread Status:
Not open for further replies.

Share This Page

Loading...