Jump to content

wildcards


abdulsamad

Recommended Posts

how do u use wildcards in php???

syntax nd xample please :)

 

Give an example of what you need to use wildcards for.  If it's for selecting stuff from a database, your database has built-in regex functions/operators/symbols.  If it's trying to find patterns in strings, php has built-in regex functions that include wildcard operators/symbols.

Link to comment
Share on other sites

i m tRYinG tO maKE thE scRipT iN whICH i wiLl giVe a usErnAMe nD password and a link nD the link would b lyk

http://rs250.rsdnsi/12/23

wht i wanna do is tht put the usename nd password lyk this

http://username:password@rs250.asds/23/23

i can write it lyk

echo "http".$username.$password.":".$link but the prblm is that $link also for http:// so it will b lyk

http://username:password@http://rs250.asds/23/23

but i don't want tht http://

so ny suggestions? 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.