Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php // e.g. metadata on Stripe objects. class Stripe_AttachedObject extends Stripe_Obje..

Decoded Output download

<?php

// e.g. metadata on Stripe objects.
class Stripe_AttachedObject extends Stripe_Object
{
  /**
   * Updates this object.
   *
   * @param array $properties A mapping of properties to update on this object.
   */
  public function replaceWith($properties)
  {
    $removed = array_diff(array_keys($this->_values), array_keys($properties));
    // Don't unset, but rather set to null so we send up '' for deletion.
    foreach ($removed as $k) {
      $this->$k = null;
    }

    foreach ($properties as $k => $v) {
      $this->$k = $v;
    }
  }
}
 ?>

Did this file decode correctly?

Original Code

<?php

// e.g. metadata on Stripe objects.
class Stripe_AttachedObject extends Stripe_Object
{
  /**
   * Updates this object.
   *
   * @param array $properties A mapping of properties to update on this object.
   */
  public function replaceWith($properties)
  {
    $removed = array_diff(array_keys($this->_values), array_keys($properties));
    // Don't unset, but rather set to null so we send up '' for deletion.
    foreach ($removed as $k) {
      $this->$k = null;
    }

    foreach ($properties as $k => $v) {
      $this->$k = $v;
    }
  }
}

Function Calls

None

Variables

None

Stats

MD5 04d143bf291af575c4e3920e84e74814
Eval Count 0
Decode Time 91 ms