Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88731 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9305 invoked from network); 9 Oct 2015 23:55:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Oct 2015 23:55:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=mail@dasprids.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mail@dasprids.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain dasprids.de from 46.4.80.198 cause and error) X-PHP-List-Original-Sender: mail@dasprids.de X-Host-Fingerprint: 46.4.80.198 server1.dasprids.de Received: from [46.4.80.198] ([46.4.80.198:48681] helo=mail.dasprids.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8C/19-57614-A0458165 for ; Fri, 09 Oct 2015 19:55:55 -0400 Received: from [192.168.0.86] (unknown [5.158.132.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mail@dasprids.de) by mail.dasprids.de (Postfix) with ESMTPSA id 6CC6934404F9 for ; Sat, 10 Oct 2015 01:55:51 +0200 (CEST) To: internals@lists.php.net References: Message-ID: <5618541F.4030201@dasprids.de> Date: Sat, 10 Oct 2015 01:56:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] New function proposal From: mail@dasprids.de (Ben Scholzen 'DASPRiD') If you and your friends use that a lot, how about you just define a function for it in userland? There's absolutely no logical reason to have this in core. function var_die($value) { var_dump($value); exit; } On 08.10.2015 17:05, Mattias Gonzalez 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´ll be very useful. > > It should do the var_dump($var);and die(); > > what do you think? > -- Ben Scholzen 'DASPRiD' Community Review Team Member | mail@dasprids.de Zend Framework | http://www.dasprids.de