sKunKbad Posted June 26, 2007 Share Posted June 26, 2007 $data = str_replace(" ","-",$dat['title']); echo $data; Quote Link to comment Share on other sites More sharing options...
Caesar Posted June 26, 2007 Share Posted June 26, 2007 This guy is pretty much a turd, for someone asking for help. I say he take his infinite knowledge and figure it out. For someone with that attitude, sure took him a while to notice he was only copying the original variable...and not redefining it's value. Quote Link to comment Share on other sites More sharing options...
per1os Posted June 26, 2007 Share Posted June 26, 2007 <?php if (isset($dat) && is_array($dat)) { foreach ($dat as $key => $val) { $dat[$key] = str_replace(" ", "-", $val); } $data = $dat['title']; echo "<pre>", print_r($dat), "</pre><br />"; echo "Data (of title) contains: " . $data . "<br />"; }else { echo 'Oh No! We do not have an array or a set variable!!!!!'; } ?> See what that gets you. Edit: After reading the above posts by the topic starter I debated actually removing this code, learn some respect and manners man. If I was a mod, you would have been kicked off the site for dis-respectful comments like that. Seriously, people are only trying to help and help open up some insight to you. You know 100% of the job is on you, if I solve this problem for you I do not gain any profit or incentive of anytype. If you cannot do it than its not our problem, thats your problem. I suggest you take on a new attitude. Quote Link to comment Share on other sites More sharing options...
Barand Posted June 27, 2007 Share Posted June 27, 2007 I don't think it merits a ban, but he should be aware that such an attitiude will deter people from answering future posts. I have a list of such people and just ignore their questions - it's not worth the aggro - especially those that PM me with "Why don't you answer my question?". Like it's compulsory! Quote Link to comment Share on other sites More sharing options...
sKunKbad Posted June 27, 2007 Share Posted June 27, 2007 so... who has the most posts ever? Barand with 10K+ is the most I've seen! Quote Link to comment Share on other sites More sharing options...
Mathy Posted June 27, 2007 Author Share Posted June 27, 2007 I don't see what's wrong with my attitude, pal! Please provide me with an example? Quote Link to comment Share on other sites More sharing options...
per1os Posted June 27, 2007 Share Posted June 27, 2007 Well, when you can grow up maybe you will realize what was wrong with your attitude. My code works as I tested it on my pc. Quote Link to comment Share on other sites More sharing options...
trq Posted June 27, 2007 Share Posted June 27, 2007 Please provide me with an example? Comments like these.... That's not your business, when I tell you what the values contain. Nice, I think you at least know what you're doing. Your code is useless, didn't even try it! Will get you knowhere fast. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted June 27, 2007 Share Posted June 27, 2007 Okay so none of the code snippets supplied is not working? If that's the case can you please post your full code here so we can see how you are using the suggested code snippets. Also can everyone quit the insults too. If you are not going to contribute to this thread then don't post at all. Quote Link to comment Share on other sites More sharing options...
Mathy Posted June 27, 2007 Author Share Posted June 27, 2007 I solved the problem. Sorry for my attitude, but I had a deadline. Now, where do I mark this thing as resolved? I know that's possible. Quote Link to comment Share on other sites More sharing options...
Barand Posted June 27, 2007 Share Posted June 27, 2007 "Topic Solved" button is at bottom left of the page. Quote Link to comment Share on other sites More sharing options...
Caesar Posted June 27, 2007 Share Posted June 27, 2007 Bottom left I believe. Quote Link to comment Share on other sites More sharing options...
Mathy Posted June 28, 2007 Author Share Posted June 28, 2007 Okay thanks. Done. 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.