unique titles/Splitting Stuff

6 years 2 months ago - 6 years 2 months ago #3301 by Soykal

Hallo Bram,

How can I make one function of two separate functions.

Thank you very much for your effort


1-unique titles

function u_cb(&$item) { generic_cb($item); $item=md5($item.$item);}


2-Splitting Stuff

merchantcategoryname Donna > Scarpe > Derby

function generic_gt_cb(&$item) {
generic_cb($item);
list($item,$item,$item)=explode (">",$item,3);



  • Thank you received:

  • Gender: Male
  • Birthdate: Unknown
  • Last Edit: 6 years 2 months ago by Soykal.

    Please Log in to join the conversation.

    6 years 2 months ago #3302 by bram

    Depends...

    I think I would start with something like

    function u_cb(&$item) { 
    generic_cb($item); 
    u($item);
    }
    function u(&$item) {
    $item=md5($item['title'].$item['feed']);
    }
    function u_gt_cb(&$item) { 
    generic_cb($item); 
    list($item['menu_1'],$item['menu_2'],$item['menu_3'])=explode (">",$item['menu_1'],3); 
    u($item);
    }
    



  • Posts: 1494
  • Karma: 57
  • Thank you received: 247

  • Gender: Unknown
  • Birthdate: Unknown
  • The following user(s) said Thank You: Soykal

    Please Log in to join the conversation.

    Time to create page: 0.051 seconds
    Powered by Kunena Forum