Loading ...
Sorry, an error occurred while loading the content.

RE: [php_greek] find the text

Expand Messages
  • Nikos Lempesis
    $str1 = Arnaki mayro kai adynato ; // to kyrio string sto opoio 8a ginei i anazitisi $str2 = Arnaki ; // to string pros anazitisi if (strstr($str1,
    Message 1 of 5 , Nov 9, 2003
    • 0 Attachment

      $str1 = "Arnaki mayro kai adynato";  // to kyrio string sto opoio 8a ginei i
      anazitisi
      $str2 = "Arnaki";    // to string pros anazitisi

      if (strstr($str1, $str2))

      {

      $thesi = strpos($str1, $str2);

      echo (“To string”.$str2.”brethike sto string “.$str1”.$thesi);

      }

      else

      echo("To string " . $str2 . " den bre8ike sto string " . $str1);

       


      From: Dimitrios Botsis [mailto:dimbotsis@...]
      Sent: Sunday, November 09, 2003 8:23 PM
      To: php_greek@yahoogroups.com
      Subject: Re: [php_greek] find the text

       

      Tsekare ton parakatw kwdika PHP :
      <?
      $str1 = "Arnaki mayro kai adynato";  // to kyrio string sto opoio 8a ginei i
      anazitisi
      $str2 = "Arnaki";    // to string pros anazitisi
      $pos = strpos($str1, $str2);
      if ($pos === false)   // prosexe : yparxoyn 3 ison (=)  (type casting OK)
        {
        echo("To string " . $str2 . " den bre8ike sto string " . $str1);
        }
      else
        {
        echo("To string"' . $str2 . " bre8ike sto string " . $str1 . " sti 8esi "
      . $pos);
      ?>

      Dimitris Botsis
      http://www.neologic.gr


      ----- Original Message -----
      From: Thanos Grr. Tsouanas <Thief_Grr@...>
      To: < php_greek@yahoogroups.com >
      Sent: Saturday, November 08, 2003 3:02 PM
      Subject: RE: [php_greek] find the text



      checkare oles tis str* function ssto manual ths php tha breis kamposes.
      Prosoxh sayth pou sou epistrefei pos(ition) giati an psaxnakis arnaki sto
      "arnaki aspro kai paxi" tha epistrepsei 0, mias kai einai sth thesh 0 !

      _______________________________________________
      Join Excite! - http://www.excite.com
      The most personalized portal on the Web!


      -
      Ãéá íá äéáãñáöåßôå áðü ôç ëßóôá, óôåßëôå Ýíá email óôï:
      To unsubscribe from this group, send an email to:

      php_greek-unsubscribe@yahoogroups.com



      Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/



      -
      Ãéá íá äéáãñáöåßôå áðü ôç ëßóôá, óôåßëôå Ýíá email óôï:
      To unsubscribe from this group, send an email to:

      php_greek-unsubscribe@yahoogroups.com



      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
    Your message has been successfully submitted and would be delivered to recipients shortly.