Jump to content

Archived

This topic is now archived and is closed to further replies.

frustrated

quick question

Recommended Posts

yes but I am not sure how to put all of those pieces together. I can tell you that there is a whole chunk of functions for doing that type of thing in different ways, there are those that if utilized properly you can probably achieve that.

Share this post


Link to post
Share on other sites
try something like this:

[code]
$string="aslj234u0jlkj3l4k+-043%";

$replace = preg_replace('/[\d]*[^\w]*/','',$string);

// the [\d] will remove all numbers
// the [^\w] will remove all non a-zA-Z0-9_
[/code]

Share this post


Link to post
Share on other sites

×

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.