Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $string = $gv_entry->entry['30'];
- // Remove brackets.
- $string = trim( $string, '[]' );
- $post_ids = array_map(
- function( $string_id ) {
- // Remove quotes around IDs.
- return trim( $string_id, '"' );
- },
- explode( ',', $string )
- );
Add Comment
Please, Sign In to add comment