Search Result

Collapse
3 results in 0.0015 seconds.
Keywords
Members
Tags
explode
  •  

  • Tyler Harder
    started a topic How can I make this code simpler and sexier?
    in PHP

    How can I make this code simpler and sexier?

    Hello,
    I wrote a little chunk of code that explodes a string and uses the string components to access some array data stored in "$instruction_j son". The below code is quite repetetive/redundant and I suspect it could be done with just a couple of lines of code instead, but I can`t figure out how. Any takers?

    Code:
    // compile data actually comes from a database, but an example value would be "title.jp",
    ...
    See more | Go to post

  • londres9b
    started a topic PHP Explode ...?
    in PHP

    PHP Explode ...?

    I know this:
    Code:
    <?php
    /**
    code owner: Rahul Sinha
    contact : rahul@zimaudio.com/rahulazm@gmail.com
    **/
    $str='http://www.mysite.com/directory/page.php';
    $arr = explode("com/",$str);
    echo $arr[1]; // prints directory/page.php
    
    ?>
    But what I want is to get directory/page (without .php)
    or http://www.mysite.com/directory/page

    How can...
    See more | Go to post

  • amel86
    started a topic how to retrieve multiple values in checkbox checked
    in PHP

    how to retrieve multiple values in checkbox checked

    hello,
    i have a question. firstly sorry coz my grammar is not so good. i hope you all understand what question i will submit here..

    the problem i face now is i cant retrieve all data that user already checked in checkbox. i want to edit the complete data. actually i need to modify the system that completely finish. so there no problem with saving or edit data.the problem is i just want to display data in checkbox.

    ...
    See more | Go to post
    Last edited by Dormilich; Apr 16 '10, 05:55 AM. Reason: Please use [code] tags when posting code
Working...