ginsterbusch,
@ginsterbusch@kosmos.social avatar

So, what in the name of the FSP is THIS?!?

$found_items = get_items_from_db();

$json = json_encode($found_items);
$x = json_decode($json);

Why would one even DO that?!?

tseitr,
@tseitr@mastodon.sdf.org avatar

deleted_by_author

  • Loading...
  • ginsterbusch,
    @ginsterbusch@kosmos.social avatar

    @tseitr Its really just these lines. Data gets retrieved from the database via a function call (returns an associative array), and then immediatedly encoded to and decoded from JSON.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • php
  • khanakhh
  • magazineikmin
  • osvaldo12
  • GTA5RPClips
  • mdbf
  • Youngstown
  • tacticalgear
  • slotface
  • rosin
  • kavyap
  • ethstaker
  • everett
  • thenastyranch
  • DreamBathrooms
  • megavids
  • InstantRegret
  • cubers
  • normalnudes
  • Leos
  • ngwrru68w68
  • cisconetworking
  • modclub
  • Durango
  • provamag3
  • anitta
  • tester
  • JUstTest
  • lostlight
  • All magazines