anonīms Posted February 27, 2010 Report Share Posted February 27, 2010 inventars_1451515_blalb_yoyo Kā iegūt stringu, kas ir starp pirmo un otro _? Paldies Quote Link to comment Share on other sites More sharing options...
waplet Posted February 27, 2010 Report Share Posted February 27, 2010 $lieta = explode('_',"inventars_1451515_blalb_yoyo"); echo $lieta[1]; Quote Link to comment Share on other sites More sharing options...
2easy Posted February 27, 2010 Report Share Posted February 27, 2010 "ehh waplet's jau pasteidzas" :D taču es darītu mazliet, mazliet savādāk ;) list(, $otrais) = explode('_', 'inventars_1451515_blalb_yoyo'); echo $otrais; Quote Link to comment Share on other sites More sharing options...
ohmygod Posted February 27, 2010 Report Share Posted February 27, 2010 $str = preg_replace('/([a-z_]){1,}/', '', $str); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.