Re: Inconsistencies between parameter number and index when reflecting a method/function

From: Date: Fri, 03 May 2024 15:53:31 +0000
Subject: Re: Inconsistencies between parameter number and index when reflecting a method/function
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-123265@lists.php.net to get a copy of this message
On Fri, 3 May 2024 at 17:49, Derick Rethans <derick@php.net> wrote: > > Which *API* in PHP is 1-indexed? > > cheers, > Derick Certainly isn't normal but found 1 (and only 1!): $stmt = $pdo->prepare('SELECT name FROM users WHERE id = ?'); $stmt->bindParam(1, $id);

« previous php.internals (#123265) next »