Jump to content
php.lv forumi

Iznemt vardu no teksta


dAivEd

Recommended Posts

$text = "Edgars";

 

Ja vienīgais kas tev interesē vārda "Edgars" iegūšana. Ja vārda "Edgars" vietā iespējami arī citi vārdi, tad būtu tev konkrētāk jāpasaka pēc kāda principa meklēt šo vārdu.

 

 

Tu laikam nesaprati :D Man vajag no ta visa tekst'a dabut tikai to vardu, tas teksts izvadas no datubazes. Vinu nevar nomainit pret $text = "Edgars"; !

Edited by dAivEd
Link to comment
Share on other sites

Ja runa tieši par šo doto variantu tad:

 

$text = "Chaw mani sauc Edgars";


$vards = explode(" ",$text);

echo $vards[3];

 

Hmm, shito es zinu, problema ir taada ka var but ari "Chaw Edgars mani sauc" un visadi shadi veidi, readli man ir no teksta jaatrod vards edgars un jaizvada

Link to comment
Share on other sites

#gameplace

 

-----------------

#dragstyle^

#erotic

#mixzuemvsmums

#purvciems

#5vs5

#gather.cs

#gameplace

 

-----------------

#gameplace

 

-----------------

#mucrop

#igo

#gameplace

#cs.racial

#cs.gunz

#highpracc

#ue

#network

#5vs5

#mirc.lv

#elve

#esport.lv

#skillz

 

 

no shiem vardiem ir jaatlasa tikai vaards #gameplace, parejie citi vaardi pazuud, vaitad tik gruuti saprast (sick) ?

 

Piemers ar vardu Edgars ir reali tadspats, neuzheli neviens nevar saprast mani ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...