Jump to content

b00ker_b0y

Members
  • Posts

    25
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

b00ker_b0y's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. shocker-z - cheers for the reply but its not realy what i am looking for. array_unique() bascily does that. its not realy a duplicate as such, just need to compare the words in phrases but in a muddled order. so need it to flag up these as being the same for example: Hello the world the world hello world hello the cheers for the quick reply none the less
  2. hey. jaymc - that will only work for 2 arrays won't it? how would you go about adapting that to take an unlimited number of arrays. shocker-z - what exactly does that function(s) do? cheers for your help lads
  3. Hello people! need to some how remove a duplicate entry to an array to an extent. ie the conents of Array1 would be something like: 0 -> Free Willy 1 -> Willy Free so both entries will be classed as the same via the words being jumbled up. So plan was to explode the words into another array and some how compare them using array_unique() maybe? getting lost in thought! any help would be gateful! Thanks
  4. hey people. got a string i.e. "Hello World 2007". aim is to remove only one white space when prompted ie. remove the first and end up with "HelloWorld 2007" or the 2nd and achieve "Hello World2007". Could be a string with more white space. Any functions that single out a specified character? but only 1 such as take the 2nd white space but leave the first? thanks
  5. cheers for your help people, all sorted.
  6. hey, is there a way to reverse only 2 charcters in a string? i know you can reverse an entire string by just using strrev, but was wondering if you could just reverse say 2 letters of the string at a given position i.e. hello and then get... hlelo by some how reversing 2 chars at the 2nd char?
  7. i gonna forget it now lol and just use strip slashes as you suggested and work things different way. cheers for your help anyhow buddy!
  8. hmm, got this error with that: Warning: preg_replace() [function.preg-replace]: No ending delimiter '/' found
  9. hey, tried that! $campaign = "ebook\'s"; $campaign = preg_replace('\\','',$campaign); dont work tho
  10. Hey people little stuck using preg replace. Basicly i have the string looking like this: "ebook\'s" but not to sure how to remove the backslash using preg replace as a / is a delimiator. Any suggestions would be grateful!
  11. arh yes, thanks very much for your time and quick responce! not as complicated as i was trying to make it! cheers again
  12. From: Spain had also regained its growth in the overall number of <a href="http://www.lamangaspain.com/index.htm" target="_blank">holidays</a> from the UK, after being hit by the rise in popularity of other cheap destinations such as Egypt, Turkey and Eastern Europe.<br/><br/>In total, Brits made over 12 million trips to Spain last year to spend more than &#163;5 billion on their southern neighbours.<br/><br/>According to Mintel, agents were currently struggling in Spain, and needed to expand or appeal to a more high-end market to reverse the negative trend.<br/><br/>The research showed that the country's appeal to the young was falling as the 20 to 24 year old group was now the least likely to travel to the country.<br/><img alt="ADNFCR-1179-ID-18240457-ADNFCR" src="http://feeds.directnews.co.uk/feedtrack/adferocopyright.gif?feedid=1179&itemid=18240457" /> To: Spain had also regained its growth in the overall number of <a href="http://www.lamangaspain.com/index.htm" target="_blank">holidays</a> from the UK, after being hit by the rise in popularity of other cheap destinations such as Egypt, Turkey and Eastern Europe.<br/><br/>In total, Brits made over 12 million trips to Spain last year to spend more than &#163;5 billion on their southern neighbours.<br/><br/>According to Mintel, agents were currently struggling in Spain, and needed to expand or appeal to a more high-end market to reverse the negative trend.<br/><br/>The research showed that the country's appeal to the young was falling as the 20 to 24 year old group was now the least likely to travel to the country.<br/> just want image knocked off the end, but the image could be different so have a different name so just need remove everthing between <img and />. <img alt="ADNFCR-1179-ID-18240457-ADNFCR" src="http://feeds.directnews.co.uk/feedtrack/adferocopyright.gif?feedid=1179&itemid=18240457" />
  13. hey, sorry did not know where to post this? thought i was in correct place. $logo_description = $news[Content]; $logoless_description = preg_replace("/<img/", "", $logo_description); $logoless_description = preg_replace(" />/", "", $logo_description); just want the text be the same with all the breaks, and links in tact, just with the image and its link on the end removed.
×
×
  • 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.