skip 1st value of loop. i'm trying getting youtube video search data from api with php in loop a got 2 video i want show only 2nd one and skip 1st one.  $grab=grabe('https://www.googleapis.com/youtube/v3/search?key='.$key.'&amp;part=snippet&amp;order=relevance&amp;maxResults=2&amp;q='.$q.''); $json = json_decode($grab); foreach ($json-&gt;items as $sam){     $link= $sam-&gt;id-&gt;videoId;   i got '.$link.' 2 video , bout i want show 2nd video skip 1st 1 how it possible
I have the following code:  if ($_POST['submit'] == "Next") {     foreach($_POST['info'] as $key =&gt; $value) {         echo $value;     } }   How do I get the foreach function to start from the 2nd key in the array?
Why was the switch statement designed to need a break? Given a simple switch statement  switch (int) {     case 1 :     {         printf("1\n");         break;     }      case 2 :      {         printf("2\n");     }      case 3 :      {         printf("3\n");     } }   The absence of a break statement in case 2, implies that execution will continue inside the code for case 3. This is not an accident; it was designed that way. Why was this decisions made? What benefit does this provide vs. having an automatic break semantic for the blocks? What was the rationale? Are functions of independent variables also independent? How can I know if $2^{2^{2^{2^{2}}}}+1=?$ is prime? If I want to add more RAM to my computer, how can I buy something compatible? What kinds are there? How do I determine which kind my computer will accept and how much I can add? While working in a Java app, I recently needed to assemble a comma-delimited list of values to pass to another web service without knowing how many elements there would be in advance. The best I could come up with off the top of my head was something like this:  public String appendWithDelimiter( String original, String addition, String delimiter ) {     if ( original.equals( "" ) ) {         return addition;     } else {         return original + delimiter + addition;     } }  String parameterString = ""; if ( condition ) parameterString = appendWithDelimiter( parameterString, "elementName", "," ); if ( anotherCondition ) parameterString = appendWithDelimiter( parameterString, "anotherElementName", "," );   I realize this isn't particularly efficient, since there are strings being created all over the place, but I was going for clarity more than optimization.  In Ruby, I can do something like this instead, which feels much more elegant:  parameterArray = []; parameterArray &lt;&lt; "elementName" if condition; parameterArray &lt;&lt; "anotherElementName" if anotherCondition; parameterString = parameterArray.join(",");   But since Java lacks a join command, I couldn't figure out anything equivalent.  So, what's the best way to do this in Java? Could 'cogito ergo sum' possibly be false? I apologize if this question is posted on the wrong portion of the website, but I knew no better place to ask.  I've come to see that some effects, such as super-conduction may happen at either extremely low temperatures, or at extreme temperatures (the recent discovery of superconducting iron in the bowels of the earth, for one), and this is fascinating.  My question is: can (does?) the same principle be applied to quantum effects? Would it be applicable to, for example, say that although quantum effects happen at nano scales and below they may happen on a grand scale of say, the entire Universe (as a solitary unit)?  Can said quantum effects happen at moments of say, picoseconds after the Big Bang due to the turbulence of forces involves in such an event? Or even within the core of a dying star?  Thank you for any answers or clarification of my misinformation. The question I want to ask is related to the answer of this question:  .   My aim is to separate my bibliography into two parts : one part for a personnal bibliography, and a second one for the regular bibliography.  To do that, I use the technique of the post I cited :  \documentclass{article} \usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage[style=alphabetic,maxnames=6,natbib=true]{biblatex} \bibliography{biblatex-examples}  % Variants of each could be added \newcommand{\firstname}{Donald~E.} \newcommand{\lastname}{Knuth}  \DeclareBibliographyCategory{byname}  \DeclareIndexNameFormat{byname}{% Test could be refined   \ifboolexpr{ test {\ifdefstring{\lastname}{#1}}            and test {\ifdefstring{\firstname}{#3}}               } {\addtocategory{byname}{\thefield{entrykey}}} {}}  \AtDataInput{%   \indexnames[byname]{author}}  \begin{document}  \section{Knuth's books}  \begin{refsection}  \nocite{*}  \printbibliography[category=byname,heading=none]  \end{refsection}  \section{Not Knuth's books}  \printbibliography[notcategory=byname,heading=none] \end{document}   The problem is that only the second bibliography appears, and when I remove the refsection, then all the bibtex entries of my input files are printed, separated as they should.  EDIT: the aim is to have all publications (even the ones not cited) by author knuth in the first section and all the other cited publications in the second one. What does ` (backquote/backtick) mean in commands? I came across the following command:  sudo chown `id -u` /somedir   and I wonder: what is the meaning of the ` symbol. I noticed for instance that while the command above works well, the one below does not:  sudo chown 'id -u' /somedir Undocumented increase in minimum bounty value? I recently discovered that if I have posted an answer to a question, the minimum bounty I can offer for that question is +100 (instead of the usual +50).   Temporarily deleting the answer reinstates the +50 bounty (a workaround!).  As far as I can tell, this is not mentioned in  , , or . I've also tried  but didn't get very far.  So:   Should the FAQs be updated to include this information? Why have this rule in the first place if it's so easily bypassed?     Update:  This is indeed a new feature (introduced in ) to .This is mentioned explicitly in a few   but, as far as I can tell, not in FAQs. This information is therefore out of reach of mere mortals who do not have a finger on the pulse of MSO/SE.   The loophole mentioned above , but as of this update, can still be exploited (tested on superuser).  We can haz bugfix and faq update, pliz? Is there a way to write binary literals in C#, like prefixing hexadecimal with 0x? 0b doesn't work.  If not, what is an easy way to do it? Some kind of string conversion? I know how much space is required to install Ubuntu.  How much space does a Ubuntu installation take up on the disk? I'm one of those exceptions that deviates from the norm: I run CyanogenMod without any Google apps.   Is it possible to download the Stack Exchange Android app .apk directly? Since I've a database systems examination in less than 3 hours (from now), I have been browsing Stack Exchange network for questions with normalisation and related tags. Most of the questions are now closed as  or others from the list.  Since, these questions are closed, no users are allowed to post answers to them (unless they are reopened). Why am I, then, allowed the option to protect such questions? Doesn't that beat the entire purpose behind "protecting" a question? How to remove GNOME Shell from Ubuntu 20.04 LTS to install other desktop environment from scratch? I have just installed the final version of Ubuntu 20.04 LTS desktop system from ubuntu-20.04-desktop-amd64.iso. After two days of testing I completely do not like its graphical interface - the GNOME Shell. Even installation of GNOME Flashback does not help either.  So I want to completely remove the GNOME Shell with all its trails from my system without re-installation. Just want to start from scratch like it was approximately if I have installed Ubuntu from . Recommend MVVM or just answer the question? Taylor Expansion $\log(\frac{1+z}{1-z})$ Taylor Expansion of $\log(\frac{1+z}{1-z})$ around $z=0$  But $\log(1+z)=\sum_{n=1}^{\infty}(-1)^{n+1}\frac{z^n}{n}$  How can I continue from here? I was reading Brian Greene's "Hidden Reality" and came to the part about Hawking Radiation. Quantum jitters that occur near the event horizon of a black hole, which create both positive-energy particles and negative-energy particles, produce the so-called Hawking radiation. However, I do not understand why only the negative-energy particles are being absorbed into the black hole, while the positive-energy particles shoot outward. Shouldn't there be 50/50 chance that each type of particle is being absorbed by the black hole? Also, the book mentions that a negative-energy particle would appear to an observer inside the black hole as positive. Why? Recently, I was wondering how division of aleph numbers would work. First, I thought about how finite cardinality division would work. What I came up with was that the result of $A/B$ where $A$ and $B$ are both cardinalities, is the number of times that each element of $B$ had to be mapped to an element of $A$ in order to ensure that all elements of $A$ were mapped to.  Extending this to aleph numbers, specifically, I thought that $\aleph_1/\aleph_0$ would be $\aleph_1$. The reasoning behind this is that there are an infinite ($\aleph_1$) number of real numbers between any two natural numbers. As such, that mapping would need to be applied.  Can anyone validate this idea? Is this how division of aleph numbers actually works, or am I totally off base?  Thanks. 'Guest' vs 'Guest User License' in sites?