" => // // [nnhw-zmcg] => 1448527327 // // ... // // ) // // ------------------------------------------------------------------------- //\greatKiwi_byFernTec_adSwapper_local_v0x1x211_testDebug\pr( // $vetted_available_ads , // '$vetted_available_ads' // ) ; // ========================================================================= // Update the current value... // ========================================================================= // $now = time() ; // ------------------------------------------------------------------------- // if ( array_key_exists( // $ad_sid , // $vetted_available_ads // ) // ) { // $vetted_available_ads[ $ad_sid ] = $now ; $vetted_available_ads[ $ad_sid ] = time() ; // } else { // // $vetted_available_ads[ $ad_sid ] = $now ; // // Actually, this "available ad" was downloaded BEFORE $now. // // But we don't know the exact "time()" - so this is our best // // guess. // // } // ========================================================================= // Save the new value... // ========================================================================= // ------------------------------------------------------------------------- // update_option( $option , $new_value , $autoload ) // - - - - - - - - - - - - - - - - - - - - - - - - - // Use the function update_option() to update a named option/value pair to // the options database table. The $option (option name) value is escaped // with $wpdb->prepare before the INSERT statement but not the option value, // this value should always be properly sanitized. // // This function may be used in place of add_option, although it is not as // flexible. update_option will check to see if the option already exists. // If it does not, it will be added with add_option('option_name', // 'option_value'). Unless you need to specify the optional arguments of // add_option(), update_option() is a useful catch-all for both adding and // updating options. // // $option // (string) (required) Name of the option to update. Must not // exceed 64 characters. A list of valid default options to update // can be found at the Option Reference. // Default: None // // $new_value // (mixed) (required) The NEW value for this option name. This // value can be an integer, string, array, or object. // Default: None // // $autoload // (mixed) (optional) Whether to load the option when WordPress // starts up. For existing options `$autoload` can only be updated // using `update_option()` if `$value` is also changed. Accepts // 'yes' or true to enable, 'no' or false to disable. For // non-existent options, the default value is 'yes'. // Default: null // // RETURN VALUE // (boolean) True if option value has changed, false if not or if // update failed. // ------------------------------------------------------------------------- $result = update_option( $option_name , $vetted_available_ads ) ; // ------------------------------------------------------------------------- if ( $result !== TRUE ) { $ln = __LINE__ - 2 ; return <<