Skip to main content

unique titles/Splitting Stuff

More
9 years 10 months ago - 9 years 10 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);
Last edit: 9 years 10 months ago by Soykal.

Please Log in to join the conversation.

More
9 years 10 months ago #3302 by redactie
Depends...

I think I would start with something like
Code:
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); }
The following user(s) said Thank You: Soykal

Please Log in to join the conversation.

Time to create page: 0.363 seconds