Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88733 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13351 invoked from network); 10 Oct 2015 00:34:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Oct 2015 00:34:34 -0000 Authentication-Results: pb1.pair.com header.from=korvinszanto@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=korvinszanto@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.51 as permitted sender) X-PHP-List-Original-Sender: korvinszanto@gmail.com X-Host-Fingerprint: 209.85.220.51 mail-pa0-f51.google.com Received: from [209.85.220.51] ([209.85.220.51:35403] helo=mail-pa0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 75/D9-57614-91D58165 for ; Fri, 09 Oct 2015 20:34:34 -0400 Received: by pabve7 with SMTP id ve7so41742422pab.2 for ; Fri, 09 Oct 2015 17:34:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-type; bh=NCIo85MAxG7Osd7W9AFEGMm7TpWf6j25JhqmsnZa2Dk=; b=LLyOXKlYPwf0aQRw+Qfp8rPht5roEmQFJONt1/NMuYLUWt3whF+jHa+EyVZO5np+3m VDoAzYJ1lX7o3fwRm7ZwXeqWOxQzwYG8iJ9IjfGndbeQtFOMisyW82Pbdr/fzyEFSwo9 ys1pXyZzOD6c82WFtcDaJaYZUHo6jAF/AZDvndQsB9zQ4xLlNlV8giHXWlfzrYjzbj+5 UyDPAEuPuMyvjLFZpzifF/NewJMfVxxHwtGEmJraxHx4nULQi7qMTmCaoEOIcqeq3Moq NNNNg0FwG0DboP5K4piMml/gHmZVIDPcurw/jBeAbbXVicHdZHX+pTmxTda7k/4bomRC THvA== X-Received: by 10.66.147.104 with SMTP id tj8mr18511930pab.125.1444437270031; Fri, 09 Oct 2015 17:34:30 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 10 Oct 2015 00:34:20 +0000 Message-ID: To: Kris Childress , Mattias Gonzalez Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=047d7b6dcd6e61742b0521b542b0 Subject: Re: [PHP-DEV] New function proposal From: korvinszanto@gmail.com (Korvin Szanto) --047d7b6dcd6e61742b0521b542b0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I agree with Ben on this, I personally use var_dump();exit; in my code a lot, but there's no reason this needs to be in the core and not in userland= : function dd(...$args) { var_dump(...$args); exit; } On Fri, Oct 9, 2015 at 5:24 PM Kris Childress wrote: > Mattias, > > As an avid user of var_dump($something); die(); I think this is a > *fabulous* > idea! > > Laravel has a good idea with dd(), I would like to see something that is > quick and easy to type, that we can throw anything at.. Maybe something > similar (basic example) to the following : > > > > function dd($anything) > { > > var_dump(func_get_args()); > > die(1); > > } > > Or something along those lines.. > > What does the gang think? > > > On Thu, Oct 8, 2015 at 9:05 AM, Mattias Gonzalez < > mattiasgonzalez@gmail.com> > wrote: > > > I wanted to propose the "var_die($var)" functionallity. > > My mates and i use a lot var_dump($var);die; > > > > Since die() wont print an array just a string, i think it=C2=B4ll be ve= ry > > useful. > > > > It should do the var_dump($var);and die(); > > > > what do you think? > > > > > > -- > Kris Childress > --047d7b6dcd6e61742b0521b542b0--