Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/07/2011, 22:53
Duffing
 
Fecha de Ingreso: mayo-2011
Mensajes: 47
Antigüedad: 13 años
Puntos: 0
Respuesta: Duda sobre cortar palabras

Hay logre algo no practico pero eficaz, hay lo dejo por si a alguien lo sirve:
Código PHP:
Ver original
  1. <?php
  2. /* Definicion de Mail */
  3. /* ----------------------- */
  4. /* Hotmail? */
  5. $mailhost   = 'hotmail';
  6. $pos = strpos($mail, $mailhost);
  7.  
  8. if ($pos === false) {
  9.     } else {
  10.     echo "el mail pertenece a hotmail";
  11. }
  12. /* ----------------------------------- */
  13. /* gmail? */
  14. $mailhost   = 'gmail';
  15. $pos = strpos($mail, $mailhost);
  16. if ($pos === false) {
  17. } else {
  18.     echo "el mail pertenece a gmail";
  19. }
  20. /* ---------------------------------------*/
  21. ?>

Muchas gracias por responder.

Saludos.