Here is the result
$help_brother="30,45,12,13,14,15";
$force_world = '45,12,15';
$help_brother_array = explode(',', $help_brother);
$force_world_array = explode(',', $force_world);
$Result = array_diff($help_brother_array, $force_world_array);
echo implode(",",$Result);
You can get the following result.
If it helps then upvode the answer.
Related Posts:
- Can I use the same nonce for multiple requests on the same page?
- WordPress and magic quotes
- How to check if a string is a valid URL
- Pass media upload value to input field
- If Custom Field is empty don’t display div
- the_author_posts_link css class
- WordPress redirect to landing page if not logged in
- Design view breaking on Pages
- I want to remove the links from the term list returned by get_the_term_list
- How to use a frontend URL with a Plugin
- error_log is not working as expected in functions.php file
- Get list of shortcodes from content
- Adding Google Analytics code to the tag of specific pages
- query if on page/2/?
- Site Health : An active PHP session was detected
- How to display a value from a radio button in the options menu in wordpress
- How to debug php code in hostgator cPanel
- Put php variable in shortcode
- Web scraping using transients
- PHP in post content [closed]
- Display post image with fancybox
- PHP Script for last login time
- Is there a WordPress version that is incompatible with PHP 5.3?
- Implement One Time URL Script
- Call to undefined function wp() in wp-blog-header.php
- Unable to write multiple values back to ACF user field – PHP
- PHP Array Returning [object Object]. Tried existing answers results with no luck
- Why Won’t My Inputs in a form with a Get method work together?
- Extend PHP regex to cover “srcset” and “style” attributes
- How to pass Select value from Javascript to PHP to generate select option on change
- Automatic Shortcode Creation with Custom Fields [closed]
- WordPress function when file is uploaded, deleted or edited
- Parse error: syntax error, unexpected ‘}’ surrounding a while
- Using a $GET parameter from a URL, to redirect to a URL (WordPress)
- wp-options keep crashing please help
- Querying Database with wpdb
- Post’s ID pattern?
- Countdown to date function?
- calling a custom field value inside functions.php
- php esc_html_e with an html link inside not working
- User Meta Value not echoing despite Var_Dump Showing correct string
- WordPress check if current taxonomy has child
- Is there a name for trivial WP PHP files like functions.php, archive php entry.php, page.php and so forth?
- show something only when user comes from specific page at remote host?
- get_theme_mod outputs number when using WP_Customize_Cropped_Image_Control
- array_rand not working correctly?
- How do I increase the upload size only when editing special pages?
- Adding php script to WordPress [closed]
- Remove category from pagination
- Function Display article [closed]
- Custom Taxonomy Select Menu: Setting default option value?
- How to add author’s posts link (HTML + PHP) inside a function to output it
- Show login greeting above sub-menu links?
- Conditional On custom field plugin metabox
- Exclude function from running on a certain page
- wordpress sql posts query won’t display the latest post in a specific category
- How to load previous or next attachment with jquery ?
- How to get the second slug of a page url?
- Woocommerce Custom Meta Boxes- How to only display if they actually have content
- custom add note meta box with add button in wordpress
- Display Sibling WooCommerce Product Categories on Archive Page
- I am having issue in divi woocomerce checkout module. (DIVI theme)
- WordPress api post image raw data without being blank in media library
- display condition based on post term and status
- Not able to remove caption shortcode from the content
- Display WordPress archive template page in 3 columns and not 1 column [closed]
- Only the first image uploads
- Run do_shortcode on php template using JS function
- Trying to use a variable to set image width
- How to get all post status
- removing the standard dashboard widgets in WP so I Can replace with custom
- Shortcodes not processing inside post content
- Gravity Forms: How to add PHP function to confirmation conditional shortcode?
- How to change order inside foreach using wp_enqueue_script?
- Change header on one page in WordPress
- get_filtered_term_product_counts – Get product terms if any products
- Adding extra data to shortcode attributes and pass it to JS with wp_localize_script
- The link you followed has expired. Please try again
- How to Protect a private folder inside uploads folder, if User is not Logged In?
- Cleaner ‘for each’ loop for registering scripts in functions.php
- Premature end of script headers: wp-mail.php?
- When to use wp_register_script() function?
- New database entry to trigger runing PHP/SQL query through link with token, without logging into the website
- loading a php file to a specific page id
- How to get all users by user_login as a json_encode array?
- defined (‘ABSPATH’) false after AJAX post to other PHP-file
- Getting error in sql query
- How limit the width of a fixed menu-bar on scroll?
- How can I enqueue comment-reply script only on certain page?
- Subheader title depends on post – change to static
- Count posts per post-type for last month/week
- Use jQuery and AJAX to get HTML
- Make the text field in search form optional
- Loading a post’s content, into a div outside the loop, when it’s title is selected in a list
- Adding a Sub Menu Options Page WP Backend Menu. Whats wrong with my code?
- Conditional in foreach loop is outputting content twice
- how to add display_name
- Particular meta tag – viewport – insertion when dealing with plugin
- Pull latest Youtube Video from json url and make new post
- AJAX WP_Query’s order and orderby parameters not working