Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function my_set_retailers( $gratisid, $gprice, $gurl, $amazonid, $aprice, $aurl, $clibroid, $cprice, $curl, $ebookid, $eprice, $eurl, $fnacid, $fprice, $furl, $kindleid, $kprice, $kurl ) {
- $retailers = array();
- if( !empty( $gratisid ) ) {
- $retailers[] = array("id" => $gratisid, "product_price" => $gprice, "product_url" => $gurl);
- }
- if( !empty( $amazonid ) ) {
- $retailers[] = array("id" => $amazonid, "product_price" => $aprice, "product_url" => $aurl);
- }
- if( !empty( $clibroid ) ) {
- $retailers[] = array("id" => $clibroid, "product_price" => $cprice, "product_url" => $curl);
- }
- if( !empty( $ebookid ) ) {
- $retailers[] = array("id" => $ebookid, "product_price" => $eprice, "product_url" => $eurl);
- }
- if( !empty( $fnacid ) ) {
- $retailers[] = array("id" => $fnacid, "product_price" => $fprice, "product_url" => $furl);
- }
- if( !empty( $kindleid ) ) {
- $retailers[] = array("id" => $kindleid, "product_price" => $kprice, "product_url" => $kurl);
- }
- return serialize( $retailers );
- }
- function my_divide()
- {
- return "|";
- }
- ?>
Add Comment
Please, Sign In to add comment